How to run wikipedia in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to run wikipedia in python?

Run mean how to search in python through wikipedia

30th Jun 2019, 6:47 PM
CHANDAN KUMAR
CHANDAN KUMAR - avatar
4 Answers
+ 5
Import web browser first. urllib.parse.urljoin('https://www.Wikipedia.com/search', '?q=' + qstring) webbrowser.open(url)
30th Jun 2019, 8:40 PM
Jella
Jella - avatar
+ 1
With an http request and a parser to prowess data
30th Jun 2019, 7:46 PM
Lexfuturorum
Lexfuturorum - avatar
+ 1
I think you need both urllib and BeautifulSoup.
30th Jun 2019, 8:12 PM
Théophile
Théophile - avatar
0
You can use Selenium if you want navigate in the site it is more convienient.
24th Jul 2019, 9:52 PM
Az Rael
Az Rael - avatar