Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I parse a website in python once I know its url?

Tags:

python

If I know the url of a wiki site , How do I use python to parse the contents of it ?

like image 436
Hick Avatar asked Feb 22 '26 06:02

Hick


1 Answers

This is a very broad question, but the first things to reach for are urllib, which will handle the downloading part, and Beautiful Soup, which will do the parsing. Gluing them together and writing the code to actually extract information from the parse tree is up to you.

like image 82
zwol Avatar answered Feb 27 '26 10:02

zwol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!