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
* Add fake-useragent to requirements
* update version numbering in setup and changelog
* update readme
* Additionally scrape for is_verified when scraping user profiles
@@ -167,17 +177,19 @@ Also see `Twitter's Standard operators <https://developer.twitter.com/en/docs/tw
167
177
2.2.3 Examples of scraping user pages
168
178
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
169
179
170
-
You can also scraped all tweets written or retweetet by a specific user. This can be done by adding the boolean argument ``-u / --user`` argument to the query.
171
-
If this argument is used, the query should be equal to the username.
180
+
You can also scraped all tweets written or retweetet by a specific user.
181
+
This can be done by adding the boolean argument ``-u / --user`` argument.
182
+
If this argument is used, the search term should be equal to the username.
This does not work in combination with ``-p``, ``-bd``, or ``-ed``.
178
189
179
190
The main difference with the example "search for tweets from a specific user" in section 2.2.2 is that this method really scrapes
180
-
all tweets from a profile page (including retweets). The example in 2.2.2 scrapes the results from the search page (excluding retweets).
191
+
all tweets from a profile page (including retweets).
192
+
The example in 2.2.2 scrapes the results from the search page (excluding retweets).
181
193
182
194
183
195
2.3 From within Python
@@ -206,15 +218,23 @@ You can easily use TwitterScraper from within python:
206
218
2.4 Scraping for retweets
207
219
----------------------
208
220
209
-
A regular search within Twitter will not show you any retweets. Twitterscraper therefore does not contain any retweets in the output. To give an example: If user1 has written a tweet containing ``#trump2020`` and user2 has retweetet this tweet, a search for ``#trump2020`` will only show the original tweet. The only way you can scrape for retweets is if you scrape for all tweets of a specific user with the ``-u / --user`` argument.
221
+
A regular search within Twitter will not show you any retweets.
222
+
Twitterscraper therefore does not contain any retweets in the output.
223
+
224
+
To give an example: If user1 has written a tweet containing ``#trump2020`` and user2 has retweetet this tweet,
225
+
a search for ``#trump2020`` will only show the original tweet.
226
+
227
+
The only way you can scrape for retweets is if you scrape for all tweets of a specific user with the ``-u / --user`` argument.
210
228
211
229
212
230
2.5 Scraping for User Profile information
213
231
----------------------
214
232
By adding the argument ``--profiles`` twitterscraper will in addition to the tweets, also scrape for the profile information of the users who have written these tweets.
215
233
The results will be saved in the file "userprofiles_<filename>".
234
+
216
235
Try not to use this argument too much. If you have already scraped profile information for a set of users, there is no need to do it again :)
217
-
It is also possible to scrape for profile information without scraping for tweets. Examples of this can be found in the examples folder.
236
+
It is also possible to scrape for profile information without scraping for tweets.
237
+
Examples of this can be found in the examples folder.
0 commit comments