Note that there are some explanatory texts on larger screens.

plurals
  1. POPeriodic HTML crawl
    primarykey
    data
    text
    <p>I'm considering developing a site where the server will crawl another site periodically, in order to gather content for certain entries in my database. My quesitons are as follows...</p> <ol> <li>How do you get the server to execute a crawl timely?</li> <li>Can you get it to execute php or what language do you use to perform the crawl?</li> <li>Are there any good APIs to do this?</li> <li>Should I consider building my own? If so, some advice on how to get started would be great</li> </ol> <p>Basically, the kind of thing I want to do, is for the server to execute a script (say every hour), which finds all entries in the database which haven't yet been crawled on another site. It will take a certain value from those entries, and will use them to crawl another site... it might request a url like this: <code>www.anothersite.com/images?q=entryindb</code>.</p> <p>What I want it to do is then crawl the HTML, return an array, and log the values in the database. This is what I want the crawler to look for</p> <pre><code>Find all instances of &lt;img&gt; inside &lt;a&gt; inside &lt;td&gt; inside &lt;tr&gt; inside &lt;tbody&gt; inside &lt;table&gt; inside &lt;div id='content'&gt; Return array of the img.src from all instances. </code></pre> <p>Is something like that possible? - If so, how would I go about doing it? - Please bear in mind that web dev wise, the only experience I have so far (server-side) is with PHP.</p> <p><strong>UPDATE</strong>: I will be using a linux-based server, so I guess chron-scripting is how I should do it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload