-2

Possible Duplicate:
Parsing HTML in Python

i am newbie to python, i am using python.i have downloaded the HTML file from my site.and that downloaded HTML file has some urls. i want only some urls from that HTML file to be write in to separate text file using python.how can i do this? can anyone help me?

Community
  • 1
  • 1
Mud Hut
  • 575
  • 2
  • 10
  • 21

1 Answers1

3

Use Beautiful Soup.

Beautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide idiomatic ways of navigating, searching, and modifying the parse tree. It commonly saves programmers hours or days of work.