3 ms·
Yeah it makes sense. If you are getting locations in specific, then it makes more sense to just use the second url as you state. I've been using BeautifulSoup
by cinquemb 13y ago
Yeah it makes sense.
If you are getting locations in specific, then it makes more sense to just use the second url as you state.
I've been using BeautifulSoup, then searching for the span tags where the "class" attribute is set to "pp-headline-item pp-headline-address", and getting the formatted address of the possible locations that show up and using that in the query to the second url (I'm lazy so I only get the first result if multiple exist).
I don't know if that would work better than regexs because google could still change the html every so often (but maybe not as often as javascript).