We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I will like to know any link , project or library that can help me understand the process to get a random image from a key word or #tag.
I will like to be able in my sketch to place a keyword example like "kanye west" so it goes to Google images, tumblr or Flickr.From the 3 or 6 first page take 1 (10 or 15) image bigger than 600px . And display the image randomly.
I will also like to be able form the key word it will go Wikipedia page. Get the first part of the text everything between the title and the content and display it. Same thing from tweeter get some random tweet about the key word.
Hope somebody will be able to give me information about that where to look for it.
Answers
linked from the processing libraries page (https://processing.org/reference/libraries/ ):
https://github.com/keshrath/ImageLoader ?
Thanks! Thats a good starting point.
I have looked at the video that is good information. Regarding Wikipedia: as I understand, it looks like they block the xml and jsong page so I cannot use.
Does somebody know the way to get the text from a Wikipedia with processing ? I try to understand this https://en.wikipedia.org/wiki/Help:Export, but I am new to this type of thing and it looks complicated to implement in processing. I want to get the first text paragraph. Is there a tool or other tutorial you know about?
https://www.mediawiki.org/wiki/API:Main_page
https://en.wikipedia.org/w/api.php?action=help&modules=query+extracts
https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&titles=Automation
thanks alot BarbaraAlmeida , i was able to display the text in processing. now i am looking to find way to format the text so it look nice with no < p > or < b >. and is it possible to use hyphen.
I all so looking to get tweet from the same key work do I need to have api code for twitter. Look like each site has its own way and rule to get this xml file. Tumblr looks complicated to. Is there a simple way? Thanks in advance.
If you use explaintext (like on the example with Automation) you already get the text without these tags.
OK thanks ! I have tried with other words like art and all note appear at the end. I want to remove them so I have tried to remove explaintext, so it has created the tag. I understand bedder now. can you do &-note or something similar