Hello, I have personally found this tutorial to be helpful. Check it out: https://www.youtube.com/watch?v=3xQTJi2tqgk Thank you.
On Tuesday, September 29, 2015 12:05 PM, Joel Goldstick <joel.goldst...@gmail.com> wrote: On Tue, Sep 29, 2015 at 11:47 AM, Crusier <crus...@gmail.com> wrote: > Hi > > I have recently finished reading "Starting out with Python" and I > really want to do some web scraping. Please kindly advise where I can > get more information about BeautifulSoup. It seems that Documentation > is too hard for me. > > Furthermore, I have tried to scrap this site but it seems that there > is an error (<http.client.HTTPResponse object at 0x02C09F90>). Please > advise what I should do in order to overcome this. > > > from bs4 import BeautifulSoup > import urllib.request > > HKFile = urllib.request.urlopen(" > https://bochk.etnet.com.hk/content/bochkweb/tc/quote_transaction_daily_history.php?code=2388 > ") > HKHtml = HKFile.read() > HKFile.close() > > print(HKFile) > > Thank you > Hank > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > many people find this package to be easier to use than the built in python support for reading urls: http://docs.python-requests.org/en/latest/ -- Joel Goldstick http://joelgoldstick.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor