Jefferson-Henrique / Jefferson-Henrique/GetOldTweets-python
For loop inside a Jupyter notebook
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 790
- PR merge metrics
- No merged PRs in 30d
Description
So I'm trying to run this process in a Jupyter notebook for a variety of accounts, then save the output file depending on the handle I am going for. Basically I would like to automate this process rather than me changing the querysearch parameters in my command line every time.
```
import got
retailers = ["handle1", "handle2"]
for retailer in retailers:
string = "keyword " + "@"+ retailer
file_name = "keyword_" + retailer
%run Exporter.py --querysearch retailer --since 2018-01-01 --maxtweets 50 --output file_name
````
However I have the problem where GOT is searching for the term "retailer" and not actually what I want, which is "keyword @retailer". Same for the output file, which is being saved as "file_name" and not "keyword_retailer".
Any ideas on how I can solve this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.