Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yogeshnile/fetch-old-tweets

In this repo fetch old tweets of user and store in csv file.
https://github.com/yogeshnile/fetch-old-tweets

csv getoldtweets3 old-tweets pandas pandas-dataframe python tweets

Last synced: 26 days ago
JSON representation

In this repo fetch old tweets of user and store in csv file.

Awesome Lists containing this project

README

        

# fetch old tweets :notebook:  [![](https://camo.githubusercontent.com/17fa56d1fbad7bb4082c9711a77b984b85e79446/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507974686f6e2d332e362d627269676874677265656e2e737667)](https://python.org)

- In this repo fetch old tweets of user in csv file using python. You can check example in [here](https://github.com/yogeshnile/fetch-old-tweets/tree/master/Example)
- In example i have downloaded year of 2016 tweets of [Narendra Modi](https://twitter.com/narendramodi) and [Donald J. Trump](https://twitter.com/realDonaldTrump).


[![](https://camo.githubusercontent.com/2fb0723ef80f8d87a51218680e209c66f213edf8/68747470733a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f6d6164652d776974682d707974686f6e2e737667)](https://python.org)

# How to use it? :thinking:
In python file you put below three information.
- Enter twitter handle as you want in user_name section.
- Enter Starting date of you want fetch.
- Enter Ending date of you want fetch.
```python
user_name = "elonmusk" #put twitter user id without @
start_date = "2016-01-01" #yy-mm-dd
end_date = "2016-12-31" #yy-mm-dd
```
- Run python programme.

# Directory Tree :cactus:
```bash
.
├── Example
│   ├── narendramodi 2016-01-01 to 2016-12-31 tweets.csv
│   └── realDonaldTrump 2016-01-01 to 2016-12-31 tweets.csv
├── LICENSE
├── README.md
└── user-old-tweets.py

1 directory, 5 files
```

## Bug / Feature Request :man_technologist:
If you find a bug (the application couldn't handle the query and / or gave undesired results), kindly open an issue [here](https://github.com/yogeshnile/fetch-old-tweets/issues/new) by including your search query and the expected result.

If you'd like to request a new function, feel free to do so by opening an issue [here](https://github.com/yogeshnile/fetch-old-tweets/issues/new). Please include sample queries and their corresponding results.

## Connect with me! 🌐
Known on internet as **Yogesh Nile**

[![][I_LinkedIn]][LinkedIn] [![][I_Github]][Github] [![][I_Twitter]][Twitter] [![][I_Telegram]][Telegram] [![][I_Instagram]][Instagram] [![][I_Instagram Personal]][Instagram Personal]

## Email Me :e-mail:

[![][I_Email]][E-mail]

[LinkedIn]: https://bit.ly/2Ky3ho6
[Github]: https://www.github.com/yogeshnile/
[Twitter]: https://bit.ly/3dbLJLC
[Telegram]: https://t.me/yogeshnile
[Instagram]: https://bit.ly/3b9Qeo4
[Instagram Personal]: https://bit.ly/32SXHV0
[E-mail]: mailto:[email protected]

[I_LinkedIn]: https://img.icons8.com/bubbles/100/000000/linkedin.png
[I_Github]: https://img.icons8.com/bubbles/100/000000/github.png
[I_Twitter]: https://img.icons8.com/bubbles/100/000000/twitter.png
[I_Telegram]: https://img.icons8.com/bubbles/100/000000/telegram-app.png
[I_Instagram]: https://img.icons8.com/bubbles/100/000000/instagram-new.png
[I_Instagram Personal]: https://img.icons8.com/bubbles/100/000000/instagram.png
[I_Email]: https://img.icons8.com/bubbles/100/000000/secured-letter.png