- Joined
- Apr 26, 2017
- Messages
- 242
- Trophies
- 0
- Location
- The nearest computer
- Website
- termer.net
- XP
- 335
- Country
Greetings, Tempers! I've got a bit of a problem, and I'd like to see if anyone has any advice on how to solve it.
So, I'm making a program called LexMeme (GitHub page) that automatically generates memes and posts them to Twitter. The current system I have in place goes like this:
1. Check from a list of words, and make a search query.
2. Search for it, and obtain links.
3. Visit pages and obtain images and download them.
4. Generate valid caption text for image based on page snippet provided by duckduckgo
I'm stuck on no. 4 because I have no idea how I'm going to extract a valid caption from the snippet. Suggestions on how to do it?
So, I'm making a program called LexMeme (GitHub page) that automatically generates memes and posts them to Twitter. The current system I have in place goes like this:
1. Check from a list of words, and make a search query.
2. Search for it, and obtain links.
3. Visit pages and obtain images and download them.
4. Generate valid caption text for image based on page snippet provided by duckduckgo
I'm stuck on no. 4 because I have no idea how I'm going to extract a valid caption from the snippet. Suggestions on how to do it?
Last edited by Termer,