Closed xsser closed 4 years ago
That's what I get and it keeps going. Do you get the same error message with every query? Are you using a specific setup or what?
nop, i got the same error with evert query.
search_worker error occured:CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/aiohttp/connector.py", line 936, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 981, in create_connection ssl_handshake_timeout=ssl_handshake_timeout) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 1009, in _create_connection_transport await waiter ConnectionResetError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/twint", line 11, in
search_worker error occured:CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0) CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
May you try reverting those commits on your local repo and let me know if something changes, please? (you have just to change the prefix of urls and a couple things around, pretty easy and straightforward)
ok ,i will do it . ps,i didn't change any code in twint, i just wrote my nodejs code ,and call twint cli
such like:
task.forEach(function (val,index,arr) {
var exec = require('child_process').exec;
today = require("./lib");
today = today.getToday();
exec(`twint -u ${val} --since ${today} -o ./data/${val}_${today}.json --json`, function(err,stdout,stderr){
if(err) {
console.log('worker出问题了:'+stderr);
} else {
console.log(stdout);
process.send('任务完成!')
}
})
})
each task is a twitterID
I still got the problem in querying
twint -u GoogleHacking --since 2019-11-25
/usr/local/python3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/client.py:977: RuntimeWarning: coroutine 'noop' was never awaited
self._resp.release()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/local/python3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/client.py:518: RuntimeWarning: coroutine 'noop' was never awaited
resp.release()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
/usr/local/python3/lib/python3.7/site-packages/aiohttp-4.0.0a1-py3.7-linux-x86_64.egg/aiohttp/client.py:541: RuntimeWarning: coroutine 'noop' was never awaited
resp.release()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
1201483161638539265 2019-12-02 20:48:02 CST <GoogleHacking> [Files Containing Juicy Info] ext:sql intext:@gmail.com intext:e10adc3949ba59abbe56e057f20f883e http://dlvr.it/RKWF3g
1201483160606793728 2019-12-02 20:48:02 CST <GoogleHacking> [Pages Containing Login Portals] intitle:"TMSoft MyAuth Gateway 3" -DOWNLOAD http://dlvr.it/RKWF3F
1201483158971043842 2019-12-02 20:48:02 CST <GoogleHacking> [Pages Containing Login Portals] inurl:10443/remote/login http://dlvr.it/RKWF2x
1201483157935030272 2019-12-02 20:48:01 CST <GoogleHacking> [Pages Containing Login Portals] intitle:MK-AUTH :: CONTEUDO RESTRITO -site: http://mk-auth.com.br http://dlvr.it/RKWF29
1199336639769657345 2019-11-26 22:38:32 CST <GoogleHacking> [Pages Containing Login Portals] site:*/my.policy http://dlvr.it/RK7pzC
About RuntimeWarning: Enable tracemalloc to get the object allocation traceback
, Idk why you are getting it. That's new to me
About CRITICAL:root:twint.run:Twint:Feed:noDataExpecting value: line 1 column 1 (char 0)
, it seems to be related to #567 but I'm not sure
Here is my output
I'v changed the file you post to me , but it didn't work.
And I use --proxy-type socks5 --proxy-port 1080 --proxy-host 127.0.0.1
which is v2ray options.
Does this affect?
In my experience, using proxies does not break the connection. Assuming that the proxy is working correctly
I may know the key to solving this problem... I captured an HTTP request package directing to
/i/search/timeline?vertical=default&src=unkn&include_available_features=1&include_entities=1&max_position=-1&reset_error_state=false&f=tweets&q=+from:google_hacking
and i got the repsonse with
You are on Twitter Mobile because you are using an old version of Chrome. Learn more here
I think it is user-agent that makes bs4 unable to grab and parse the corresponding data. Am i right? And my testing user-agent is
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
twint's user-agent:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36\
But... it doesn't make sence..
WHY did you succeed? I failed
You can manually replace the UserAgent modifying the code at
Try manually specifying the UA that you want to use
Mac, python3.7.4
command i ran :
twint -s "${val}" --since ${today} -o ./data/${value}_${today}.json --json
-s string is "dos", you can run
twint -s "dos"
to redemonstrate it .Error result i got: