A&C
Apify & Crawlee
E
Apify & Crawlee
•
3y ago
endless-jade
I'm very new to Apify and APIs in general, how do I get the latest tweet with a scraper?
I
'll be using JS to get all the info
.
Apify & Crawlee
Join
This is the official developer community of Apify and Crawlee.
13,249
Members
View on Discord
Was this page helpful?
Yes
No
I
incredible-moccasin
•
7/16/23, 12:13 AM
Hi
@Basel
_Dev
I
incredible-moccasin
•
7/16/23, 12:13 AM
You can use this Twitter scraper for that purpose
-
https://apify.com/microworlds/twitter-scraper
Apify
Twitter Scraper · Apify
Twitter Scraper searches and extracts data from Twitter
- parses and converts the data to structured formats
: HTML table
, JSON
, CSV
, Excel and XML
.
I
incredible-moccasin
•
7/16/23, 12:14 AM
You can specify the search mode
. To get latest results
, set the search mode to
E
endless-jade
OP
•
7/16/23, 12:14 AM
Ah
, I
'm looking to do that on a specific profile though
I
incredible-moccasin
•
7/16/23, 12:15 AM
I
incredible-moccasin
•
7/16/23, 12:19 AM
Yes
, you can provide a search URL
.
I
incredible-moccasin
•
7/16/23, 12:19 AM
E
.g
.
, to get the latest tweets from the twitter account
, you can pass in the URL
:
https://twitter.com/search?q=(from%3Aelonmusk)&src=typed_query&f=live
E
endless-jade
OP
•
7/16/23, 12:21 AM
Thank you so much
!
E
endless-jade
OP
•
7/16/23, 12:21 AM
How do I automate this with Nodejs though
?
I
incredible-moccasin
•
7/16/23, 12:22 AM
I am running a sample for you
, will soon complete
E
endless-jade
OP
•
7/16/23, 12:22 AM
Is there any tutorial on how to export these results automatically
, so that my code can use them
?
I
incredible-moccasin
•
7/16/23, 12:23 AM
Look here
-
https://console.apify.com/view/runs/BxGjWXFBIztbC8ZRh
Apify
Apify Console
Manage the Apify platform and your account
.
E
endless-jade
Is there any tutorial on how to export these results automatically, so that my c...
I
incredible-moccasin
•
7/16/23, 12:24 AM
I think you can simply use Apify
's APIs for this
I
incredible-moccasin
•
7/16/23, 12:26 AM
As per running the scraper and getting the results in Node js
, here
's the API docs
:
https://docs.apify.com/api/v2#/reference/actors/run-actor-synchronously-and-get-dataset-items/run-actor-synchronously-with-input-and-get-dataset-items
Apify Documentation · Apify Documentation | Apify Documentation
E
endless-jade
OP
•
7/16/23, 12:39 AM
Thank you
!
Live
Live
elonmusk
elonmusk