coding error, and I don't have a clue...

by mmixon
11 replies
A fellow warrior was nice enough to give away some software, Lead Scouter, that scrapes leads from Craigs List, but after installing the software as instructed, when I process a job, I get this error message when it tries to return the leads:

Warning: file_get_contents(http://lasvegas.craigslist.org/eve/">events</a></small) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/micmix1/2minutes2success.org/page2/autoscraper/includes/controllers.php on line 214

Any suggestions on what this may be or how to correct the error? I contacted fellow warror Sean who posted the offer, but he no longer supports the product.

In my experience with html, any little misplaced digit causes everything to stop working, and i am in hopes that is the problem here. This error is in a file I did not edit, and I am not even sure how to locate line 214 when I open the file in edit mode or I could post it here.

Any help would really be appreciated.

I really like the software, and I have some paid versions that do similar things, but I am already in a couple of days of research and work, and don't want to walk away if it might be an easy fix.

Mickey Mixon
mmixon99@earthlink.net
#clue #coding #error
  • Profile picture of the author Eddieheli
    Looks to me that this bit
    [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
    is telling you that this bit
    file_get_contents(http://lasvegas.craigslist.org/eve/">events</a></small)
    is not a correctly formatted filename. (Actually it can't find a file with that name, but it doesn't look like a proper file reference to me)
    Signature

    Eddieheli -
    "Forget about all the reasons why something may not work. You only need to find one good reason why it will." ~ Dr. Robert Anthony

    {{ DiscussionBoard.errors[2733288].message }}
    • Profile picture of the author margaritamaker
      check your file name word case. some webserver is case sensitive.
      {{ DiscussionBoard.errors[2785846].message }}
  • Profile picture of the author caesargus
    I'd be happy to help you out with your issue. From what it looks like is that the parser is not parsing the file correctly and brought in too much information (it should have only captured "http://lasvegas.craigslist.org/eve/").

    Please note, I'm not familiar with your software, so this is just a guess as to what is actually happening.
    {{ DiscussionBoard.errors[2734055].message }}
  • Profile picture of the author mmixon
    Thanks to both for your reply. I'm not sure I will ever get this software to work, so I think my best option is to cut and run. I have another program that is not as good, but it does similar things, so I think I will put my best efforts there, but thanks again.

    Mickey
    Signature
    http://popgoesthebiz.com/ Websites, Mobile Marketing and Social Media Marketing for Business and Political Candidates.
    {{ DiscussionBoard.errors[2738746].message }}
  • Profile picture of the author Robert Bridges
    [QUOTE=mmixon;2733051]A fellow warrior was nice enough to give away some software, Lead Scouter, that scrapes leads from Craigs List, but after installing the software as instructed, when I process a job, I get this error message when it tries to return the leads:

    Was this the Ewan Chia product, I think yes very useful tool I use Apple though and have not extended to Mac. Getting e-mails from Classifieds is very effective way of finding leads and adding people to your social media, pitty its not working for you though.

    I seen it on a webinar perhaps one of my newly invited friends will see this post and answer your question better. When you got it from a friend did you have to use a registration code or did you download with L Snitch?
    {{ DiscussionBoard.errors[2738774].message }}
  • Profile picture of the author mmixon
    Thanks Robert,

    Actually it was being given away by Sean Hoffman in the warrior forum. He provided video tutorials on how to install it on Dream Host, which I did, and the program works, but when returning results, it gives an error code. I liked the look and feel of the program and am sorry it did not work, and i loved the price :-)

    But I have purchased another couple of programs that do the same or similar thing, so I am thinking I would do better putting my best efforts there, rather than spending more time and effort trying to fix code, when I really don't know what I am doing.

    Wish the program were hosted online so i could use it without having to host and install it myself, but it would still be worth the expense if it just worked. Oh well... Perhaps the copy I downloaded is an old one, and an updated version might work fine, don't know.
    Signature
    http://popgoesthebiz.com/ Websites, Mobile Marketing and Social Media Marketing for Business and Political Candidates.
    {{ DiscussionBoard.errors[2738927].message }}
  • Profile picture of the author ducwic2go
    I think whoever programs that software should care a little more about error handling. At least he could write some code that indicates what that error is about in a more human readable format.

    I used to be one of those guys that didn't care much about writing codes for error handling and when I found one that have all kinds of error, I feel the pain.

    In my guess, the software maybe in .exe? if it was an open source code I might be able to take a look at figure out what is happening.
    {{ DiscussionBoard.errors[2744254].message }}
  • Profile picture of the author aesoft
    Originally Posted by mmixon View Post

    file_get_contents(http://lasvegas.craigslist.org/eve/">events</a></small)
    mmixon99@earthlink.net
    Looks like someone put a hyperlink instead of the straight URL within 'get_file_contents()'. The software may have parsed it incorrectly which caused it to overlap. No HTML should be in there, just the URL.

    It should be:
    Code:
    file_get_contents('http://lasvegas.craigslist.org/eve/')
    instead of:
    Code:
    file_get_contents(http://lasvegas.craigslist.org/eve/">events</a></small)
    {{ DiscussionBoard.errors[2745812].message }}
  • Profile picture of the author Darren Mothersele
    #3 is correct: It looks like there's a parser in the code built using preg_match or preg_match_all and there's a bug in the regular expression used to extract links.
    If you can locate the preg_match function and post this line of code we could help debug.
    {{ DiscussionBoard.errors[2792518].message }}
    • Profile picture of the author Asanga
      its a php error saying there is no file to open by the name you have specified. on that location who actually is entering this parameter (the file location) to the above said function is it through the script or is it through human input
      {{ DiscussionBoard.errors[2793208].message }}
  • Profile picture of the author ikosuave
    Here is the code in question:

    // Results_Page Stripping
    // Strip out results from page
    $start = strpos($content, '<!-- sphinx');
    $end = strpos($content, '<br>', $start) + 8;
    $raw_results = substr($content, $start, $end - $start);

    // Strip out individual results
    preg_match_all("|<a href=\"/(.*)</p>|U",$raw_results,$results);
    foreach ($results[0] as $result)
    {


    // Strip out listing Title
    $start = strpos($result, 'html">') + 6;
    $end = strpos($result, '</a>', $start);
    $title = substr($result, $start, $end - $start);

    // Strip out listing URL
    $start = strpos($result, '<a href="') + 10;
    $end = strpos($result, '.html"', $start) + 5;
    $listing_link = substr($result, $start, $end - $start);

    //Listing_Page Stripping
    $listing_link = $listing_url . "/" . $listing_link;
    $listings_page = file_get_contents($listing_link);
    ........
    {{ DiscussionBoard.errors[2850692].message }}

Trending Topics