mardi 2 août 2016

Why is this regex matching taking forever?

I'm trying to query html using the request python module and this is taking forever:

ad = re.findall(r'([^>]+)><a class=" td-n"([^>]+)>', str(soup_url))

Why is that so and how can I optimize this?

Aucun commentaire:

Enregistrer un commentaire