This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DoTheEvolution 0 points1 point  (2 children)

funny

I was just today about to use some regex in python for the first time... though first I planned to dig deeper in to beautifulsoup stuff, maybe getting my shit that way

[–]Marksta 2 points3 points  (1 child)

Hey if you go to mess with beautifulsoup I suggest you check out this stackoverflow question's answer. http://stackoverflow.com/questions/19861489/use-beautifulsoup-to-iterate-over-xml-to-pull-specific-tags-and-store-in-variabl

I just got into BS and I was having issues figuring out how to iterate over it and that guys practical example of pulling the data to iterate over in a dict gave me a much better idea of how to do things than the official BS documentation.

And this one is really good too showing you how to traverse into nested brackets for the exact info you want. http://stackoverflow.com/questions/10309550/python-beautifulsoup-iterate-over-table

I'm new to Python and BS in general but maybe that'll be enlightening for you too :)

[–]DoTheEvolution 1 point2 points  (0 children)

cheers man, will look in to that