lundi 17 décembre 2018

Delete certain ajax call from URL

I just got into web scraping with python, and im facing a problem.

Im scraping through various pages of https://upplysing.se, and need to erase a certain part from the href of the pagination button. The href is structured as followed: https://upplysning.se/person/?x=1204&where=Sveav%e4gen+Stockholm&m=1&sl=detail&page=2

I need to delete the &sl=detail part from the url, but dont fully understand how to do that. Can anyone point me in the right direction?




Aucun commentaire:

Enregistrer un commentaire