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
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_
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
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
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'
>
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