enter tagurlcontent['\nsecond page'attrs[('href''html parser is the html parser included in the standard python library information on other html parsers is available atthese examples only begin to show the power of beautifulsoup when it comes to parsing html bonus section for unix linux users if you have linuxunixor macintosh computeryou probably have commands built in to your operating system that retrieves both plain text and binary files using the http or file transfer (ftpprotocols one of these commands is curlcurl - the command curl is short for "copy urland so the two examples listed earlier to retrieve binary files with urllib are cleverly named curl py and curl py on www py com/code as they implement similar functionality to the curl command there is also curl py sample program that does this task little more effectivelyin case you actually want to use this pattern in program you are writing second command that functions very similarly is wgetwget both of these commands make retrieving webpages and remote files simple task glossary beautifulsoup python library for parsing html documents and extracting data from html documents that compensates for most of the imperfections in the html that browsers generally ignore you can download the beautifulsoup code from www crummy com port number that generally indicates which application you are contacting when you make socket connection to server as an exampleweb traffic usually uses port while email traffic uses port