I'm a total beginner to Python (most of my knowledge is in OO languages). Could you someone point me in the right direction for learning how to pull information from tables and drop-down menus from websites?

Recommended Answers

All 2 Replies

Beautiful Soup. If you search this forum there's plenty of examples using it, as well as the numerous other parsers out there.

#!/usr/bin/python2

"""Connect and dump web page
"""

import urllib2

HOST = 'hostname'
PATH = 'index.html'
URL = 'http://' + HOST + '/' + PATH

F = urllib2.urlopen(URL)
print F.read()

The code above will read a web page.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.