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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:11:52+00:00 2026-05-23T15:11:52+00:00

I’ve got a website that I’d like to pull data from and it’s really

  • 0

I’ve got a website that I’d like to pull data from and it’s really stuck in the stone ages. There’s no web service, no API and it’s very much an ASP/Session/table-based-layout page. Pretty fugly.

I’d like to just screen scrape it and use js (coffeescript) to automate that. I wonder if this is possible. I could do this with C# and linqpad but then I’m stuck parsing the tables (and sub-tables and sub-sub-tables) with regex. Plus if I do it with js or coffeescript I’ll get much more comfortable with those languages and I’ll be able to use jQuery for pulling elements out of the DOM.

I see two possibilities here:

  • use C# and find a library that will do things like Jquery but in C# code
  • use coffeescript (js) and use jquery to find the elements that I’m looking for in the page

I’d also like to automate the page a bit (get next set of results). This is strictly for personal use — I’m not pulling results of someone’s search to use in my business. I just want to make a crappy search engine do what I want.

  • 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-23T15:11:53+00:00Added an answer on May 23, 2026 at 3:11 pm

    I wrote a class that allows you to supply a bunch of urls and a code block to scrape pages inside a chrome extension. You can find the github repo here: https://github.com/jkarmel/Executor. It could use some more testing and I need to work on the documentation, but it looks like it might be what you are looking for.

    Here is how you would use it to get the all the links from a few different pages:

    /*
    * background.js by Jeremy Karmel. 
    */
    
    URLS = ['http://www.apple.com/',
            'http://www.google.com/',
            'http://www.facebook.com/',
            'http://www.stanford.edu'];
    
    //Function will be provided to exector to collect information
    var getLinks = function() {
        var links = [];
        var numLinks = $('a');
        $links.each(function(i, val) {links.push(val.href)});
        var request = {data: links, url: window.location.href};
        chrome.extension.sendRequest(request);
    }
    
    var main = function() {
        var specForUsersTopics = {
            urls     : URLS,
            code     : getLinks,
    
            callback : function(results) {
                for (var url in results) {
                    console.log(url + ' has ' + results[url].length + ' links.');
                    var links = results[url];
                    for (var i = 0; i < links.length; i++) 
                        console.log('   ' + links[i]);
                }
                console.log('all done!!!!');
            }
        };
        var exec = Executor(specForUsersTopics);
        exec.start();
    }
    
    main();
    

    So basically the code to collect the links would be supplied to the executor instance and then you would do whatever you wanted with the results in the callback. It can deal with longish lists of url (~1000) and it will work on more than one at a time (default == 5). It doesn’t handle errors in the code block very well right now, so be sure to test the code you are supplying.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from

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.