Grab Internet Content
in
Programming Questions
•
2 years ago
Hello,
let's assume I have an Internetsite and I want to spider it:
http://www.someStuff.org/polo12382.html#myprintView
http://www.someStuff.org/polo12386.html#myprintView
etc.
I need to count the number from 0 to 99999, but not all numbers exist.
I want to try load the page, check whether it exists and if true, save the content with image as rtf or html and go to the next.
Is that possible with processing?
In the reference under web I only found link / param and so on which isn't what I need.
First step would b a for i 0 99999 {
and then
pageName = FirstPart & i & SecondPart;
if exists pageName {
load pageName
saveLocally pageName fileName
}
}
Thanks!
Greetings, Chris
let's assume I have an Internetsite and I want to spider it:
http://www.someStuff.org/polo12382.html#myprintView
http://www.someStuff.org/polo12386.html#myprintView
etc.
I need to count the number from 0 to 99999, but not all numbers exist.
I want to try load the page, check whether it exists and if true, save the content with image as rtf or html and go to the next.
Is that possible with processing?
In the reference under web I only found link / param and so on which isn't what I need.
First step would b a for i 0 99999 {
and then
pageName = FirstPart & i & SecondPart;
if exists pageName {
load pageName
saveLocally pageName fileName
}
}
Thanks!
Greetings, Chris
2