Twint: scrap particular hashtag on basis of date

Created on 6 Dec 2019  Â·  23Comments  Â·  Source: twintproject/twint

hello
i have used this command:- twint -s pineapple --since 2019-12-05 -o file.csv --csv
but i am getting error like this:-
return datetime.datetime.strptime(date, "%Y-%m-%d").strftime('%s')
valueError: Invalid format string

what could be the possible solution ?

Compatibility Known Issue Workaround

All 23 comments

I'm unable to replicate your issue, also your syntax seems to be correct

yes i know but its not working , can you check is it working on your script.

immagine

I just changed the since field to get some results

nope not working in my case :(
twint

I guess there's an incompatibility issue with Windows then

How can it be fixed?

On Fri, 6 Dec, 2019, 7:53 PM Francesco Poldi, notifications@github.com
wrote:

I guess there's an incompatibility issue with Windows then

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/twintproject/twint/issues/597?email_source=notifications&email_token=AINZ3L3LYGQMVM4ESEE7YZTQXJN6HA5CNFSM4JWNTQX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGEHGHY#issuecomment-562590495,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AINZ3L3TAHZHNKEU7JP2OIDQXJN6HANCNFSM4JWNTQXQ
.

As of now I suggest to not run on Windows

I've some ideas like raw text splitting

ok , please update me when its fixed :)

@pielco11
That's exactly what i was referring to.
And if i may ask a question :
How can i use timeDelta instead of Since and Until.

Cause those 2 doesn't seem working 😕

@Ali-khavanin I removed timeDelta from the code since it was causing various issues, I'll push a workaround for Windows users

Not having a Windows machine is quite limiting me, so I kindly ask you to retry now (git clone or pip+git) and let me know if something has changed

hello
i have cloned the project but still same result.
twint

hello
i have cloned the project but still same result.
twint

hi there!
i don't exactly know why but if u use the same command on ubuntu it would work properly!
i tried it on a virtual box

hello
i have cloned the project but still same result.
twint

ooh ok cool , will try on linux now, thanx for the information :)

The issue is not fixed yet, I'll reopen this

The issue is not fixed yet, I'll reopen this

my bad :p

So, since Windows users are having issues while converting the formatted date to epoch, I removed the option to filter by hour. Now it should work as expected; an example for since and until is 2019-12-11, for non-Windows users 2019-12-11 12:00:00 is possible. What I've done should be considered as a workaround and not a solution

So, since Windows users are having issues while converting the formatted date to epoch, I removed the option to filter by hour. Now it should work as expected; an example for since and until is 2019-12-11, for non-Windows users 2019-12-11 12:00:00 is possible. What I've done should be considered as a workaround and not a solution

so should i clone again?

@riishabhz yes, or even just git pull

i have done git clone ,still same results , not able to do

@riishabhz may you post the error message please?

i sort it out , i dont know why it wasnt updating from git so i copy pasted your code in url.py file and now its working :) thanx a lot @pielco11

605

Was this page helpful?
0 / 5 - 0 ratings