Aethec, on 04 October 2012 - 20:30, said:
You are parsing the HTML page. Don't do that. Use imgur's API instead - from the documentation, you can just append ".xml" to any gallery page and it returns the gallery as an XML file.
In general, don't parse HTML pages unless there is no other way. It's not easy and it can change any day, making your program useless.
Thanks! I'll take a look.
EDIT: it seems it only returns 56 images though
Dr_Asik, on 05 October 2012 - 01:51, said:
I learned about regex and it has worked really well for me! I'll take a look at your link and find a better way to parse HTML. Thanks!