Hi
How do I create a newsapi command from this link
http://newsapi.org/v2/everything ? q=bitcoin &from=2020-08-19&sortBy=publishedAt&apiKey=d9aba179a91540849e276fae0138e031
$(eval $(urlfetch json [http://newsapi.org/v2/everything ? q=bitcoin &from=2020-08-19&sortBy=publishedAt&apiKey=d9aba179a91540849e276fae0138e031)))
(youtube user not for Twitch)
Please help
Emily
September 21, 2020, 12:07pm
2
Hey @1.000.000 !
Well, it depends of the data you want to extract…
The data you pull is in the JSON format, paste the URL in your browser to have a look:
$(eval $(urlfetch json http://newsapi.org/v2/everything?q=bitcoin&sortBy=publishedAt&apiKey=d9aba179a91540849e276fae0138e031))
This is the basics, but to navigate within the JSON you need to use proper notation, learn more here .
You’ll probably notice that I removed the &from=2020-08-19
of the URL, it’s because it doesn’t seem to be needed as it doesn’t impact the results, and it could lead to errors.
1 Like
thanks for reply
$(eval $(urlfetch jsonhttps://rss.dw.com/atom/rss-de-cul-buch))
I would like to extract the data between these marks from this link👆… Example
Thanks again for the help🤗
(youtube user )
Emily
September 22, 2020, 4:11pm
4
This is for a different link, right?
Seeing that it’s XML I doubt that it’ll be possible, have a look there: Urlfetch website with no API end point
system
Closed
October 6, 2020, 4:11pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.