Regarding fetching data from flipkart.com using screen scraper
Sir
I have created a script using screen scraper.I want the author name, Book title and price from the website www.flipkart.com in the basis of search ISBN .I have created a csv file having ISBN(named ISBN.csv in input folder of root directory of screen scraper).
You can find the whole script regarding this in which is a scraper file with csv.
www.abebooks.in/myscript/myscript.zip
The problem is that my script not run properly.The url i will give to serach in screen scraper is --
http://www.flipkart.com/~#ISBN#~
kindly provide me the extracter pattern and required url so that i will take the required data from flipkart.com using screen scraper.
My craeted script is given below:
import java.io.*;
session.setVariable("INPUT_FILE", "input/ISBN.csv");
BufferedReader buffer = new BufferedReader(new FileReader(session.getVariable("INPUT_FILE")));
String line = "";
while ((line = buffer.readLine()) != null){
// Set next zipcode to be searched
session.setVariable("isbn", line);
// Output to log for debugging
session.log("***Now scraping: " + line);
// Scrape for next search results with the new zipcode
session.scrapeFile("flip-csv");
}
session.setVariable("INPUT_FILE", "input/ISBN.csv");
BufferedReader buffer = new BufferedReader(new FileReader(session.getVariable("INPUT_FILE")));
String line = "";
while ((line = buffer.readLine()) != null){
// Set next zipcode to be searched
session.setVariable("isbn", line);
// Output to log for debugging
session.log("***Now scraping: " + line);
// Scrape for next search results with the new zipcode
session.scrapeFile("flip-csv");
}
I have taken its out put in a file pankaj.csv in root folder of screen scraper.
Pankaj, Your question is
Pankaj,
Your question is about screen-scraper but you posted in the URLFetch forum. Please post in the screen-scraper Public Support forum.
Thank you,
Scott