Commit 8e2ac55d authored by Francesco Poldi's avatar Francesco Poldi Committed by GitHub

Dev (#279)

* Update (#274)

* Fix json

* Added new data to meta

* Fix Target profile infos are scraped at each round

* Remove UserId()

* single user info

* clean comments

* clean

* add userlist lookup

* Fix search query

* add .csv, .json to .gitignore

* modify tweet timestamp

* removed --query

* fix date

* Update README

* Readme update

* Dynamic user agent + fixing retry bug (#271)

* Add dynamic user agent and bug fix

* Changed error message

Changed error message to clarify that this kind of errors is not expected and we are trying to solve them, it seems that Twitter tries to block our requests and lies about tweets existence

* Updated issue_template

* Add option for not printing output (#277)
parent d383152b
...@@ -58,3 +58,4 @@ class Config: ...@@ -58,3 +58,4 @@ class Config:
Proxy_type = None Proxy_type = None
Retweets = False Retweets = False
Query = None Query = None
Hide_output = False
...@@ -73,11 +73,11 @@ def _output(obj, output, config, **extra): ...@@ -73,11 +73,11 @@ def _output(obj, output, config, **extra):
if config.Store_object: if config.Store_object:
tweets_object.append(obj) tweets_object.append(obj)
else: else:
try: if not config.Hide_output:
print(output) try:
pass print(output)
except UnicodeEncodeError: except UnicodeEncodeError:
print("unicode error [x] output._output") print("unicode error [x] output._output")
async def tweetUserData(tweet,config, conn): async def tweetUserData(tweet,config, conn):
user_ids = set() user_ids = set()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment