You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Python/Twitter_Scrapper/README.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,6 @@
2
2
3
3
This script extracts all Tweets, Retweets, Images, Videos, Hashtags, Likes and Pinned tweet of a specific user in a .csv file.
4
4
5
-

6
-
7
5
### Requirements
8
6
9
7
1. The system should have **python** and **tweepy** installed. Also, the user should have a **Twitter developer account** and a **Twitter app** (if you do not have one, create one at [here](https://developer.twitter.com/)). The use of Tweepy and need for a developer account is in accordance with the Twitter scraping rules.
@@ -12,15 +10,16 @@ This script extracts all Tweets, Retweets, Images, Videos, Hashtags, Likes and P
12
10
### Setup
13
11
14
12
1. Create a Virtual Environment.
15
-
2. Install the requirements by using `pip install -r requirements.txt`
16
-
3. Open the script in any text editor/IDE
17
-
4. Get the credentials from the app created by you on twitter developer account and enter them here.
18
-
5. Also add the path to your chrome driver in the PATH_CHROME_DRIVER constant
19
-
6. Hurray.! You're ready to use the script to extracts all Tweets, Retweets, Images, Videos, Hashtags and Likes of a specific user.
13
+
2. Install the requirements by using `pip3 install -r requirements.txt`
14
+
3. Create a `.env` file like as `.env.example` and add the credentials from the app created by you on twitter developer account.
15
+
4. Also add chrome driver path in .env file
16
+
5. Hurray.! You're ready to use the script to extracts all Tweets, Retweets, Images, Videos, Hashtags and Likes of a specific user.
20
17
21
18
### Running a File
22
19
23
20
1. Run the Script `python twitter_scrapper.py`
24
-
3. Enter the username you want the information from.
25
-
4. Finally, you need to enter a Twitter username and password in order to extract the pinned Tweet (if it exists)
26
-
5. The .csv file is downloaded to the folder where the file runs.
21
+
2. Enter the username you want the information from.
22
+
3. Finally, you need to enter a Twitter username and password in order to extract the pinned Tweet (if it exists)
23
+
4. The `.csv` file is downloaded to the folder where the file runs.
24
+
25
+

0 commit comments