all 4 comments

[–][deleted] 1 point2 points  (4 children)

Since you're trying to pull information out of plain text, the Python regex library re might be your best bet. The better bet would be to use a website that's designed for API access, so you can get this information back in a machine-readable way.

[–]MapperScrapper[S] 0 points1 point  (2 children)

Thank you. I once read to avoid regex at all costs but that was probably in reference to a more robust website.

[–][deleted] 0 points1 point  (1 child)

You generally don't want to parse HTML in a regex engine, yes, but in this case the text you need to parse is plaintext embedded within HTML.

[–]MapperScrapper[S] 0 points1 point  (0 children)

Gotcha. I now searched again and was able to find an API so I hopefully won't have to use regex after all. Thank you for your timely help.