-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(profile): ported user profile to v2 API endpoint #955
Conversation
Cashtags fix
This reverts commit dfa57c2.
added to-do tasks for --profile-full feature
fixed user profile feature which was broken since v1 endpoints were deprecated
One more thing i'd like to add. Travis build will fail for the library even when everything works fine. that's because Travis is probably hosted on AWS/GCP and twitter doesn't provide guest token to AWS/GCP IP addresses. I have tested this on AWS with multiple IPs and none of them works. I have no idea how proxies are implemented in twint, If some one could take this up it'd fix the travis issue. |
Thanks for the commit! Will this scrape followers and followings? |
@lmeyerov What it does is:
So the catch here is, TOR is really SLOW, but, I'am only using the |
I see that you are running tor on docker? (forgive me if I'm wrong, I don't have much idea about Docker) |
@essentialols |
This is my first comment in Github, thank you so much. It's useful for my issue, despite tor isn't stable sometimes, may request timeout, still thank you so much. God bless you. |
Yes you are right, I am glad this helped you. 👍 |
@pielco11 if you think there are some problems with this PR, please let me know, so that I can make necessary adjustments. |
tombstone tweets are those tweets which are flagged by Twitter for being inappropriate, misleading, graphic etc.
This patch fixes the issue caused by twintproject#967, which broke the functionality of saving the retrieved data into a csv file.
FWIW, looking forward to trying this! cc @webcoderz |
fixes twintproject#970, lookup is ported to v2 endpoint. this can now be used to lookup a certain profile.
On Python 3.8 I keep getting this error relating to dataclasses;
I assume this is in relation to #1000 and the fact the requirements now specify dataclasses, which are not needed in 3.8. Any help would be appreciated. |
@Greatdane |
Thank you! I forked it and did the exact same code as you and it worked
fine, so should be good to go!
…On Thu, Nov 12, 2020 at 4:26 PM Himanshu Dabas ***@***.***> wrote:
On Python 3.8 I keep getting this error relating to dataclasses;
I assume this is in relation to #1000
<#1000> and the fact the
requirements now specify dataclasses, which are not needed in 3.8. Any help
would be appreciated.
@Greatdane <https://github.com/Greatdane>
hi, I have put up a patch
<https://github.com/himanshudabas/twint/tree/patch-1> for it, your issue
should be resolved now. let me know if it works for by installing directly
from my branch <https://github.com/himanshudabas/twint/tree/patch-1>.
I'll create a PR for it if it resolves your issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#955 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGXHAFIYD5JNOFBC3GAMQDSPOEZHANCNFSM4SMEIGBQ>
.
|
* fix for deprecation of v1.1 endpoints * fix for cashtags * typo * fix(datetime): _formatDateTime tries %d-%m-%y * fix(pandas): use new str-format Tweet.datetime data rep * fix(pandas datetime): use ms * fix(cashtags unwind): undo PRs field removals * Revert "fix(cashtags unwind): undo PRs field removals" This reverts commit dfa57c2. * fix(pandas): remove broken fields * fix(cash): use provided field as suggested by pr review * fix (cashtags): re enable cashtags in output * fix(db): remove broken fields * fix(datetime): Y-m-d and factored out * fixes twintproject#947 * fix(get.py): json exception in User * to-do: added to-do tasks added to-do tasks for --profile-full feature * chore(test): PEP8 formatting * fix(profile): ported user profile to v2 API fixed user profile feature which was broken since v1 endpoints were deprecated * updated Readme * fix: fixes twintproject#965 inconsistent timezones * fix: handle tombstone tweets tombstone tweets are those tweets which are flagged by Twitter for being inappropriate, misleading, graphic etc. * fixes twintproject#976: saving tweets to csv This patch fixes the issue caused by twintproject#967, which broke the functionality of saving the retrieved data into a csv file. * feature: port Lookup to v2 endpoint fixes twintproject#970, lookup is ported to v2 endpoint. this can now be used to lookup a certain profile. Co-authored-by: SiegfriedWagner <[email protected]> Co-authored-by: lmeyerov <[email protected]>
Hi!
It seems that in current version of code, |
Hi, One more thing I'd like to add is, the older PS : feature like |
@himanshudabas Is there any way to rewrite code and use desktop web version or insider graphql api instead of mobile version, to bring followers, followings, etc back? |
It's because
Yes, you are correct. Twint Wiki is past due for a long time now. But I am currently busy and unable to update it.
Not that Iam aware of. I tried going through all the graphql endpoints and wasn't able to find any endpoint which can be used for this. Newer APIs require AUTh for this.
Technical difference is what I explained above. Non technically they are the same, then why did I rename it? |
There was only one occurrence of |
Looks good. One other thing regarding your previous issue.
If the user you are searching for is not shadow banned and is reachable through Twitter Advanced Search, you can use something like this,
This will certainly fetch *almost all the tweets + replies from realDonaldTrump.
|
The user was formerly private (I think), so I could not fetch all tweets from search and had to use the flag to scrab from the timeline. |
Fixed user profile feature which was broken since v1 endpoints were deprecated by twitter.
twint -u xyz
results are sorted in this method.