Comments (1)
Thanks for the suggestion. Just added this. You can now specify your log config in Scraper, Account, and Search constructors using log_config
.
E.g.
from twitter.scraper import Scraper
cfg = {
"version": 1,
"formatters": {
"simple": {
"format": "%(asctime)s.%(msecs)03d %(levelname)s: %(message)s"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"file": {
"class": "logging.FileHandler",
"level": "DEBUG",
"formatter": "simple",
"filename": "debug.log",
"encoding": "utf8",
"mode": "a"
}
},
"loggers": {
"myLogger": {
"level": "DEBUG",
"handlers": [
"console"
],
"propagate": "no"
}
},
"root": {
"level": "DEBUG",
"handlers": [
"console",
"file"
]
}
}
email, username, password = ..., ..., ...
scraper = Scraper(email, username, password, debug=1, save=True, log_config=cfg)
from twitter-api-client.
Related Issues (20)
- Cannot parse JSON response 'NoneType' object has no attribute 'json' HOT 7
- Cursor Not Functioning Properly HOT 1
- Rate Limit Retrieval Proposal HOT 4
- 0.10.18 does not work at all on Linux HOT 2
- The limit rate of tweets_details HOT 2
- I can't get any values by using Scraper HOT 9
- Hi Trevor
- Locked accounts HOT 4
- `tweets_by_ids()` Sometimes Not Returning `legacy` HOT 1
- call stack is not deep enough HOT 2
- anyway to access oauth_token and oauth_token_secert?
- flow_token errors while logging in HOT 2
- Scraper: Cannot parse JSON response 'NoneType' object has no attribute 'json' HOT 1
- Reply w/ picture, quote with picture
- Unlock account via arkose captcha solve HOT 7
- Confirmation of tweets_by_ids endpoint rate limits HOT 1
- Unable to Authorize in Linux Shell HOT 4
- View tweet
- How to save cookies for later use HOT 1
- Bug with `debug` Parameter for Linux Shells HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-api-client.