pushkr / craigslisttocsv Goto Github PK
View Code? Open in Web Editor NEWProject Description : An API for craigslist scraping using python. Use this script to print or save craigslist searches in excel/csv files.
License: MIT License
Project Description : An API for craigslist scraping using python. Use this script to print or save craigslist searches in excel/csv files.
License: MIT License
User reported issue while running scraper for salt lake city.Scraper didnt save retrieved data for given search term and was showing old search results.
Code:
from Scraper import GetCraiglistSites, GetCraiglistData
site = GetCraiglistSites()
g_data = GetCraiglistData("F100")
g_data.seturl(site.forcity("nashville"))
g_data.saveresults()
Here is a sample block of html that contains the price - this is a single post from the search results:
<h2 class="postingtitle">
<span class="icon icon-star" role="button">
<span class="screen-reader-text">favorite this post</span>
</span>
<span class="postingtitletext">
<span id="titletextonly">1954 F100 Project Truck</span> - <span class="price">$4000</span><small> (Lynchburg)</small> <span class="js-only banish-unbanish">
<span class="banish" role="button">
<span class="icon icon-trash" aria-hidden="true"></span>
<span class="screen-reader-text">hide this posting</span>
</span>
<span class="unbanish" role="button">
<span class="icon icon-trash red" aria-hidden="true"></span>
unhide
</span>
</span>
</span>
</h2>
While searching for "Honda 2015" will work, entering: "x220" will cause an error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.