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

Re: Screen scraping

by Anonymous Monk
on Dec 28, 2015 at 15:40 UTC ( [id://1151271]=note: print w/replies, xml ) Need Help??


in reply to Screen scraping

You can try with a simple RegExp like

my ($foo) = $html =~ /id="foo">([^<]+)</gm; print "$foo\n";

Replies are listed 'Best First'.
Re^2: Screen scraping
by CountZero (Bishop) on Dec 28, 2015 at 16:23 UTC
    And then you have something a little bit more complicated than the simple example and your solution breaks.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-18 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found