craigslist

Using XmlReader get Unauthorized WebException

 ̄綄美尐妖づ 提交于 2019-12-24 00:14:58
问题 When trying to consume an RDF feed from craigslist, I'm running into a (401) Unauthorized WebException. I'm able to read the two commented out URLs directly below it with no issues. If I'm able to directly navigate to the craigslist URL using Internet Explorer with no problem, why does it fail when trying to load the data using an XmlReader? http://portland.craigslist.org/search/sss?query=mac&srchType=A&format=rss static void Main(string[] args) { XmlReader reader = XmlReader.Create("http:/

is it possible to making a posting to Craigslist through my own website?

a 夏天 提交于 2019-12-18 05:01:41
问题 What I am trying to do is allow users to making postings to Craiglist through my own website using PHP curl. This is NOT an automated posting system, I just want users to be able to post onto Craigslist and my website at the same time. So far, I've managed to log in using php but I'm still not sure how to post the title, description, contact information, etc. I am not familiar with cURL. 回答1: Your question is kind of broad, so I'll answer broadly. Narrow down your question (or post a follow

Creating/editing a php dynamic page

流过昼夜 提交于 2019-12-13 02:57:48
问题 Ok i have a dynamic page where people can post events in the city, we will call that page: city.php. In order to get to the page though, you must select a state from states.php, then a city from allcities.php. The states and cities are all in mysql database. On the city.php page you can click "add event" and it will take you to createevent.php where you can create and add an event that shows on city.php. But here is what i want to do: I want to make it so that city.php is the central spot for

How to correctly use Sessions for dynamic pages

梦想与她 提交于 2019-12-12 04:59:11
问题 This is the second part of my question from here: Creating/editing a php dynamic page I am now trying to put the code together. If you dont want to look at the first part of my question then ill tell you that i am experimenting and making a site that allows users to post events for a specific city. First the user uses a drop down menu to selct state, then on the next page they use a drop down menu to select the city. Once the city is selected they are taken to city.php where we use queries in

HTTP GET on craigslist blocked

南楼画角 提交于 2019-12-10 09:24:42
问题 I'm trying to do a HTTP GET on craigslist sfbay.craigslist.org. Here is my (ruby) code which is really simple require 'net/http' result = Net::HTTP.get(URI.parse('http://sfbay.craigslist.org')) I end up getting an error "This IP has been automatically blocked." This behaviour only happens when I try this from Amazon EC2 or on heroku. When I try again on my own computer localhost I get the correct result. Does this have to do with Amazon EC2? I'm wondering if other people have had the same

NSURLRequest, why does craigslist return a 404?

南笙酒味 提交于 2019-12-09 20:08:55
问题 I'm building my first iPhone app and I'm stymied. I'm trying to build an RSS reader, and I'm trying to use a feed from craigslist. This code, using stackoverflow, returns "Status code: 200": - (void)parseRSSFeed:(NSString *)feed withDelegate:(id)delegate { responseData = [[NSMutableData data] retain]; feed = @"http://stackoverflow.com"; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:feed]]; [[NSURLConnection alloc] initWithRequest:request delegate:self]; } - (void

uploading photos to Craigslist with Python and Selenium

一个人想着一个人 提交于 2019-12-07 07:46:17
问题 using python3, selenium with firefox on windows10: this program is simple. it jumps directly to craigslists 'post a new listing' page, uploads multiple photos, then submit. the problem im having is that i cannot control a dialog box to navigate to the correct file with selenium. browser = webdriver.Firefox() browser.get('https://post.craigslist.org/k/lPbhT6Lh5RGBKb-uS1zr0g/g2NjN?lang=en&cc=us&s=editimage') #opens to craigslists 'Upload/Edit Images' page add_imgs_btn = browser.find_element_by

Why is this warning being shown: “Received problem 2 in the chunky parser”?

这一生的挚爱 提交于 2019-12-07 03:50:45
问题 I am trying to use PHP and cURL to log in to a website (namely Craigslist). When accessing the script, I get this warning message: Received problem 2 in the chunky parser Searches showed that it is not a problem associated with cURL. I am unable to find the source of the problem. What may be the reason? Thank you. 回答1: Update: Googling for the error message, I also find this: The chunky-parser error message occurs when curl expects a chunked HTTP response body and then doesn't get one. Your

Scrapy Python Craigslist Scraper

冷暖自知 提交于 2019-12-06 05:35:41
问题 I am trying to scrape Craigslist classifieds using Scrapy to extract items that are for sale. I am able to extract date, post title, and post url but am having trouble extracting price . For some reason the current code extracts all of the prices, but when I remove the // before the price span look up the price field returns as empty. Can someone please review the code below and help me out? from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from craigslist

HTTP GET on craigslist blocked

别说谁变了你拦得住时间么 提交于 2019-12-05 12:12:30
I'm trying to do a HTTP GET on craigslist sfbay.craigslist.org . Here is my (ruby) code which is really simple require 'net/http' result = Net::HTTP.get(URI.parse('http://sfbay.craigslist.org')) I end up getting an error "This IP has been automatically blocked." This behaviour only happens when I try this from Amazon EC2 or on heroku. When I try again on my own computer localhost I get the correct result. Does this have to do with Amazon EC2? I'm wondering if other people have had the same issue. What can I do to access craigslist from EC2? tedder42 I can confirm that Craigslist is blocking