RE: Unable to Debug

2017-01-02 Thread Deborah Swanson
Aritra Bhattacharjee wrote, on January 02, 2017 1:05 AM: > I am new to python programming. I wrote a code to search for > the product names on a page of snapdeal.com . > > Code: > import urllib.request > from bs4 import BeautifulSoup as BS > > url = > 'https://www.snapdeal.com/products/electron

Re: Unable to Debug

2017-01-02 Thread David Froger
Hello Aritra, Your standard output and standard error are mixed (I don't know why), so error message is not immediate to read. It is: > Traceback (most recent call last): > File "C:/Users/Aritra Bhattacharjee/PycharmProjects/PythonWebModules/Web > Scraper.py", line 17, in > print(product_

Re: Unable to Debug

2017-01-02 Thread rus . cahimb
On Monday, January 2, 2017 at 2:35:22 PM UTC+5:30, Aritra Bhattacharjee wrote: > I am new to python programming. I wrote a code to search for the product > names on a page of snapdeal.com . [RM]: Welcome and have fun. > for i in range(1,21): > print(product_name[i]) > > > Output: > Traceba

Re: Unable to Debug

2017-01-02 Thread Vincent Vande Vyvre
Le 02/01/17 à 10:04, Aritra Bhattacharjee a écrit : I am new to python programming. I wrote a code to search for the product names on a page of snapdeal.com . Code: import urllib.request from bs4 import BeautifulSoup as BS url = 'https://www.snapdeal.com/products/electronics-headphones?sort=pl

Re: Unable to Debug

2017-01-02 Thread Peter Otten
Aritra Bhattacharjee wrote: > I am new to python programming. I wrote a code to search for the product > names on a page of snapdeal.com . > > Code: > import urllib.request > from bs4 import BeautifulSoup as BS > > url = > 'https://www.snapdeal.com/products/electronics-headphones?sort=plrty' >

Unable to Debug

2017-01-02 Thread Aritra Bhattacharjee
I am new to python programming. I wrote a code to search for the product names on a page of snapdeal.com . Code: import urllib.request from bs4 import BeautifulSoup as BS url = 'https://www.snapdeal.com/products/electronics-headphones?sort=plrty' response = urllib.request.urlopen(url).read() so