Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by coder45 (Initiate)
on Jan 02, 2006 at 14:34 UTC ( [id://520398]=note: print w/replies, xml ) Need Help??


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

I did the force option and upgraded the packages but unfortunately still an empty url1.txt file

Replies are listed 'Best First'.
Re^5: Can someone elaborate as to why this isn't working
by randyk (Parson) on Jan 02, 2006 at 18:52 UTC
    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.
      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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-29 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found