Re: [Tutor] Problem on handling if statement

2015-11-25 Thread Laura Creighton
In a message of Wed, 25 Nov 2015 17:28:24 +0800, Crusier writes: >Dear All, > >I am trying to do some web scraping. Attached below is my code: > > >from bs4 import BeautifulSoup >import requests > >#string = str(0175, 0005, 1177) >url = "https://www.etnet.com.hk/www/eng/stocks/realtime/quote.php?co

[Tutor] Problem on handling if statement

2015-11-25 Thread Crusier
Dear All, I am trying to do some web scraping. Attached below is my code: from bs4 import BeautifulSoup import requests #string = str(0175, 0005, 1177) url = "https://www.etnet.com.hk/www/eng/stocks/realtime/quote.php?code=0175"; def web_scraper(url): response = requests.get(url) html