Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6583343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:23:47+00:00 2026-05-25T16:23:47+00:00

I’m considering developing a site where the server will crawl another site periodically, in

  • 0

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…

  1. How do you get the server to execute a crawl timely?
  2. Can you get it to execute php or what language do you use to perform the crawl?
  3. Are there any good APIs to do this?
  4. Should I consider building my own? If so, some advice on how to get started would be great

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: www.anothersite.com/images?q=entryindb.

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

Find all instances of 
<img> inside <a> inside <td> inside <tr> inside <tbody> inside <table> inside <div id='content'>
Return array of the img.src from all instances.

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.

UPDATE: I will be using a linux-based server, so I guess chron-scripting is how I should do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:23:47+00:00Added an answer on May 25, 2026 at 4:23 pm
    1. You can use cron
    2. Yes, you can run a PHP script
    3. Nothing like a complete crawling API (AFAIK), but there are classes which will help you parse and traverse DOM documents.
    4. You can set something up in minutes if you follow the following steps

    1. You need phpQuery to make your life easier with this

    Download phpQuery-0.9.5.386-onefile.zip from here.

    2. Your PHP file would be something like this

    require_once 'phpQuery-onefile.php';
    $html = file_get_contents('http://www.othersite.com');
    phpQuery::newDocumentXHTML($html);
    
    $elements = pq('#content table tbody tr td a img');
    $images = array();
    foreach($elements as $img){
        $images[] = pq($img)->attr('src');
    }
    

    The $images array will have a list of all the image sources.

    3. Save the above code in a file, say crawler.php

    Then in the cron tab, if you want the crawler to run every hour, you would do:

    0 * * * * php /path/to/your/crawler.php 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I need a function that will clean a strings' special characters. I do NOT
I have a reasonable size flat file database of text documents mostly saved in
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.