-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
TypeError(s), AttributeError(s): on format.py #960
Comments
@ivanlewin
this will solve the first issue, and
this will solve the second issue too. (for now) You can put up a PR for your fix, but first merge my branch branch into yours, so that you have my fixes too. then you'll have to fix up a few more things. which I can guide you through. Although I'd recommend you to try as many as possible |
Sure, will do! |
this is what you'd need for handling
|
Hi, I merged your branch into my fork and made the changes, is that okay? I don't want to break anything heh. I tested it using the same script I used originally and it worked |
@ivanlewin ok I found another issue.
might wanna fix this too |
@himanshudabas cool. could you share me what you ran? I didn't get back any tweets with place info when I ran it |
sure.
Aah never mind. I figured out why this is happening. |
yes this is something i looked into yesterday. Actually what |
how did you change it to this: How can i edit the package? |
You can fork the repo, download it and modify it as you please. Keep in mind to set your working directory to wherever you are editing your script, otherwise Python will be using the files in the site-packages folder |
I replaced it. Yet, I still get the same error with updated code. |
Yeah, it's the same for me. |
pip3 install --user --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint
;Code ran:
I just updated twint and tried to run the same script I have been using the last months and got this error:
It was a type error which I solved by casting the value to a string (see below).
I also had to cast the
retweets_count
andlikes_count
attributesWhat was
I changed to
Then I was getting this error:
Which I solved by commenting the
retweet
and thenuser_rt_id
What was
I changed to
I am not sure if my changes are a good solution but they work for me now and maybe they will for someone else
The text was updated successfully, but these errors were encountered: