Results 1 to 7 of 7

Thread: Bulk posting in Craigslist

  1. #1
    Join Date
    Feb 2009
    Posts
    26

    Default Bulk posting in Craigslist

    Hello,
    I read on webpages such as MODERATED please review the forum posting rules that there is an one-click posting option for craigslist.
    As I researched further, I found this page:
    http://www.craigslist.org/about/bulk...#sample_client

    It seems like you can send a xml file with your listing information to their server via HTTPS Request.

    I tried to send a listing and receive a server response with following script:

    PHP Code:
    <?php
    class cURL {

        var 
    $headers;
        var 
    $user_agent;

        function 
    cURL()
        {
            
    $this->headers[] = 'Connection: Keep-Alive';
            
    $this->headers[] = 'Content-type: application/x-www-form-urlencoded;charset=UTF-8';
            
    $this->user_agent 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)';
        }
        
        
        
        function 
    post($url,$data) {
            
    $process curl_init($url);
            
    curl_setopt($processCURLOPT_HTTPHEADER$this->headers);
            
    curl_setopt($processCURLOPT_HEADER1);
            
    curl_setopt($processCURLOPT_USERAGENT$this->user_agent);
            
    curl_setopt($processCURLOPT_TIMEOUT30);
            
    curl_setopt($processCURLOPT_POSTFIELDS$data);
            
    curl_setopt($processCURLOPT_RETURNTRANSFER1);
            
    curl_setopt($processCURLOPT_FOLLOWLOCATION1);
            
    curl_setopt($processCURLOPT_POST1);
            
    $return curl_exec($process);
            
    $info curl_getinfo($process);
            
    curl_close($process);
            return 
    $info;
        }
        
    }

    $postdata "
    <?xml version=\"1.0\" encoding=\"utf-8\"?>\n

    <rdf:RDF xmlns=\"http://purl.org/rss/1.0/\"
             xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"
             xmlns:cl=\"http://www.craigslist.org/about/cl-bulk-ns/1.0\">

      <channel>
        <items>
          <rdf:li rdf:resource=\"NYCBrokerHousingSample1\"/>
          <rdf:li rdf:resource=\"NYCBrokerHousingSample2\"/>
        </items>

        <cl:auth username=\"****\"
                 password=\"****\"

      </channel>
      <item rdf:about=\"NYCBrokerHousingSample1\">
        <cl:category>apa</cl:category>
        <cl:area>chi</cl:area>
        <cl:subarea>chc</cl:subarea>
        <cl:neighborhood>Lakeview</cl:neighborhood>
        <cl:housingInfo price=\"1450\"
                        bedrooms=\"0\"
                        sqft=\"600\"/>
        <cl:replyEmail privacy=\"C\">bulkuser@bulkposterz.net</cl:replyEmail>
        <cl:brokerInfo companyName=\"Joe Sample and Associates\"
                       feeDisclosure=\"fee disclosure here\" />
        <title>Spacious Sunny Studio in Upper West Side</title>
        <description><![CDATA[
          posting body here
        ]]></description>
      </item>
      
     
      
    </rdf:RDF>
    "


    $cc = new cURL();
    $url 'https://post.craigslist.org/bulk-rss/post';
    $output $cc->post($url,$postdata); 

    //echo $output;

    print_r($output);
    Responses a Server Status = 100??! I'm not sure if you need a special account or kind of an agreement with craigslist to be allowed to use a bulk posting client.

    If anybody has an idea how to get this to work, I really would appreciate it.


    THX
    Pascal

    MOVED - to add-on help ideas and discussion.

  2. #2
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann the_sandking is on a distinguished road
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default Re: Bulk posting in Craigslist

    http://en.wikipedia.org/wiki/List_of_HTTP_status_codes

    You might also want to read this:

    Quote Originally Posted by http://www.craigslist.org/about/bulk_posting_interface
    Do not use the bulk posting interface to post to these categories. Thanks.
    Housing
    sublet/temp wanted
    real estate wanted
    housing swap
    sublets & temporary
    real estate for sale
    real estate by owner
    parking & storage
    apts wanted
    summer sublets
    apts by owner
    room/share wanted
    rooms & shares
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  3. #3
    Join Date
    Feb 2009
    Posts
    26

    Default Re: Bulk posting in Craigslist

    I got the script to work! However, you will need some kind of a verified account with craigslist. I wrote them an email and ask how to apply. We'll see if they will response

  4. #4
    Join Date
    Feb 2010
    Posts
    3

    Default Re: Bulk posting in Craigslist

    MODERATED - Please review the OR support forum posting rules:

    http://www.open-realty.org/support/a...ement.php?f=31

  5. #5

    Default Re: Bulk posting in Craigslist

    Quote Originally Posted by pascal View Post
    I got the script to work! However, you will need some kind of a verified account with craigslist. I wrote them an email and ask how to apply. We'll see if they will response
    What did you do to get this to work? I have an authorized account.

  6. #6
    Join Date
    Dec 2010
    Posts
    1

    Default Re: Bulk posting in Craigslist

    How do I get a bulk posting authorized account? I'd like one! :-)

  7. #7
    Join Date
    Jul 2003
    Location
    California
    Age
    37
    Posts
    4,229

    Default Re: Bulk posting in Craigslist

    Check with Craigslist, I believe you just need to create a verified account with them by giving them your email and cell phone number but I haven't looked into this further so Craigslist is your best resource
    Open-Realty 2 Documentation

    ~The Difference Between an ORDEAL and an ADVENTURE is ATTITUDE~

Similar Threads

  1. General Help posting rules READ BEFORE POSTING!
    By the_sandking in forum General Help (CLOSED)
    Replies: 0
    Last Post: 10-01-2008, 09:52 PM
  2. ***Posting Rules. READ ME BEFORE POSTING***
    By the_sandking in forum General Discussion
    Replies: 0
    Last Post: 09-08-2008, 04:22 PM
  3. ***Posting Rules. READ ME BEFORE POSTING***
    By the_sandking in forum Templates - Help/Ideas/Discussion (CLOSED)
    Replies: 0
    Last Post: 09-08-2008, 04:13 PM
  4. ***Posting Rules. READ ME BEFORE POSTING***
    By the_sandking in forum Addon help, ideas and discussion (CLOSED)
    Replies: 0
    Last Post: 09-08-2008, 04:07 PM
  5. Auto Posting to Craigslist & Backpage
    By ApartmentHuntersNYC in forum Work
    Replies: 2
    Last Post: 11-08-2006, 08:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts