Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Can someone elaborate as to why this isn't working

by randyk (Parson)
on Jan 02, 2006 at 18:52 UTC ( [id://520428]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Can someone elaborate as to why this isn't working
in thread Can someone elaborate as to why this isn't working

Does the script print the results to the screen? And are you letting it run to completion? When I run it, it takes a while to complete, as there's a sleep() call in there to prevent the site from thinking you're a robot - if you abort too early, the file indeed may be empty due to buffering. Try getting, say, the first 5 results, and let it run to completion.
  • Comment on Re^5: Can someone elaborate as to why this isn't working

Replies are listed 'Best First'.
Re^6: Can someone elaborate as to why this isn't working
by coder45 (Initiate) on Jan 03, 2006 at 07:03 UTC
    No results are printed to the screen, the program simply compiles and moves to the comand line prompt after a few seconds, nothing is shown in the url1.txt file. I am out of ideas, I installed all the packages via ppm and as far as I can see everything is working ok, but no results on screen or file.
      I'd suggest ensuring that the WWW-Search and WWW-Search-Yahoo packages are the most recent ones from the uwinnipeg repository; sometimes upgrading packages via ppm is tricky. Witness the following session of trying to upgrade WWW-Search-Yahoo, having installed it earlier from the ActiveState repository:
      ppm> rep Repositories: [1] ActiveState Package Repository [2] uwinnipeg ppm> rep desc 2 Describing Active Repository 2: Name: uwinnipeg Location: http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 Type: PPMServer 2.0 ppm> upgrade -install WWW-Search-Yahoo WWW-Search-Yahoo 2.37: new version 2.404 available in uwinnipeg ==================== Upgrade 'WWW-Search-Yahoo' version 2.37 in ActivePerl 5.8.7.815. ==================== Downloaded 17256 bytes. Extracting 17/17: blib/arch/auto/WWW/Search/Yahoo/.exists Successfully upgraded WWW-Search-Yahoo version 2.37 in ActivePerl 5.8.7.815.
      Thus, even though ppm saw that an upgraded version was available in the uwinnipeg repository, it didn't upgrade to that version. One way to do that is to uninstall the package, move the uwinnipeg repository ahead of the ActiveState repository, and then install:
      ppm> rep up 2 Repositories: [1] uwinnipeg [2] ActiveState Package Repository ppm> remove WWW-Search-Yahoo ==================== Remove 'WWW-Search-Yahoo' version 2.37 from ActivePerl 5.8.7.815. ==================== unlink C:\Perl\html\site\lib\WWW\Search\Yahoo.html [ snip ] ppm> install WWW-Search-Yahoo ==================== Install 'WWW-Search-Yahoo' version 2.404 in ActivePerl 5.8.7.815. ==================== Downloaded 22629 bytes. Extracting 45/45: blib Installing C:\Perl\html\site\lib\WWW\Search\Yahoo.html [ snip ] Successfully installed WWW-Search-Yahoo version 2.404 in ActivePerl 5.8.7.815. ppm> upgrade WWW-Search-Yahoo WWW-Search-Yahoo 2.404: up to date.
      You should also do the same for the WWW-Search package.
        it works now thanks removed www-search and www-search-yahoo and reinstalled it from uwinnipeg

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://520428]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found