dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Tool for Searching & Analyzing Page Content

  1. #1
    Join Date
    Aug 2009
    Posts
    4

    Question Tool for Searching & Analyzing Page Content

    I don't want to go down any blind alleys so if someone can just tell me if Javascript (or maybe Python) is the right tool for what I'm trying to do (or suggest another) I would appreciate it.

    I would like to automate the following: I log onto a web site and click a button to search for assignments. If no assignments are found I want to wait a period of time and search again. However, if assignments are found I want to select one of the available assignments and start searching again for additional assignments.

    Thanks, Ray

  2. #2
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    You'll most likely want something other than JavaScript for this--something that you can run (easily) outside of a browser.

  3. #3
    Join Date
    Aug 2009
    Posts
    4
    Why not Javascript? and what would you suggest?

  4. #4
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    JavaScript is meant to be run in a browser. And while it seems like getting a JavaScript to click links and buttons for you would be easy enough, you have to bear in mind that your script needs to be "installed" onto the page, which is possible by means of a bookmarklet. However, once it performs the navigation you want, it won't be present on the second/navigated-to page. So, your "application" would be dead.

    What you probably want is a Perl, Java, or PHP script or C/C++ binary making HTTP requests, parsing the response, and making subsequent requests and necessary.

  5. #5
    Join Date
    Aug 2009
    Posts
    4
    Thanks, I understand a lot better now.

    Will Python work? Otherwise, I will use Java.

  6. #6
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    Python should work.

  7. #7
    Join Date
    Aug 2009
    Posts
    4
    Thanks, I think I'm good to go now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles