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 939291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:45:58+00:00 2026-05-15T21:45:58+00:00

I often find myself designing simple little web projects that are serving up aggregate

  • 0

I often find myself designing simple little web projects that are serving up aggregate content or doing a ‘mashup’. Typically this involves running a script to scrape/parse/manipulate some data periodically, then serving that as ‘static’ content.

I run the ‘refresh’ script as a cron job that generates HTML that is served up to the end-user. The content doesn’t change that often so I can usually just run the cron job on an hourly basis.

Is there a better way to do this?

  • 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-15T21:45:59+00:00Added an answer on May 15, 2026 at 9:45 pm

    If you are happy with how it’s working now, I wouldn’t change anything. It is a kludge, but a functional one. But I’m guessing you’re not completely happy (otherwise you wouldn’t have asked) so a more substantial answer follows.

    A basic upgrade would be to write a script that polls your mashup sources and generates the HTML on-the-fly. The mashup sources could be anything from remote web servers, to local files, to local databases – anything you can “connect to” in code. The basic steps would be:

    1. Retrieve the info from each source, programmatically.
    2. Parse it and transform it as necessary, discarding the bits you don’t want and perhaps reformatting certain parts like date formats etc.
    3. Inject all the various bits of your transformed info into an HTML structure and output that to the client.

    1 & 2 sound like basically what you’re already doing. It’s just #3 that is the missing link. You basically want to dynamically generate the output on-the-fly instead of pregenerating it and sending out static HTML.

    Languages well-suited for this sort of thing include PHP, Perl, Ruby, Python, and others; take your pick.

    Further optimizations – in the order you’d probably want to do them – include:

    1. Caching the source data. Instead of polling the sources with every page load, poll them the first time, save the response to a file or database, and check the timestamp of the response every subsequent page load to see whether it’s still “fresh.” If so, you can send out the local cached copy instead, typically a massive performance improvement.
    2. Asynchronously loading your source data so that the time it takes to load becomes that of the slowest source, rather than the sum of all sources.
    3. Sending out the HTML page right away and loading each source via separate AJAX calls, displaying each in their own div, for example.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.