I am doing web Crawling in using beautiful.I get the Data from various websites but i am not getting from some of website i find that these website show data using js.
I write the following script to derived data and it works fine but not in some which is usind JS for their data.
from bs4 import BeautifulSoup
import requests
import urllib2
params = {"url":"search-alias=aps","field-keywords":"j7"}
url = "http://www.amazon.in/s/ref=nb_sb_noss"
soup = BeautifulSoup(requests.get(url, params=params).content)
ul = soup.findAll("h2" ,{"class":"a-size-medium a-color-null s-inline s-access-title a-text-normal"})
j=0
for a in ul:
print a.contents
print "\n"
j=j+1
It works fine in that but some website is there they are using js to fetch data and show data so i cant get data by that way