دنبال کننده ها

۱۳۹۶ مرداد ۱۱, چهارشنبه

Python 2.7: Get remaining titles from next page of wikipedia category

[ad_1]

I want to get every article from a category page in Wikipedia using Python 2.7. The problem I'm running into is that I don't know how to get to the next page through the "next page" button if I am HTML scrapping. This article Pythonic beautifulSoup4 : How to get remaining titles from the next page link of a wikipedia category seems to have fixed the issue, but only if you are using python 3.x because it uses the urllib.parse class.



[ad_2]

لینک منبع