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

Thread: Need code help for screen scraping

  1. #1
    Join Date
    Apr 2012
    Posts
    2

    Cool Need code help for screen scraping

    I have written some code with values as below. And when the user inputs a url - I need to be able to get the values from the labels and save to my web page (I do not need the label name for now - just the content. I am using Javascript and HTML. I have looked at several websites on screen scraping but cannot understand so I am needing some help from the experts. Thanks in advance.
    I need the script to look for the values as they will be different each time from the URL that is entered into the textbox.

    1. User enters url where they want to get the values from
    2. Code searches for values and displays in iframe or table on same page as the textbox for the url.
    3. The last piece will be they will need to paste into another url that has the same fields but need the values populated.

    It is a copy and paste method.



    <INPUT id="url" TYPE="type" NAME="name" size="60"
    size="size"maxlength="maxlength" />



    This an example that is from the page I need to copy from:

    <label for="summary">Summary<span class="aui-icon icon-required"></span><span class="content">Required</span></label>
    <input class="text long-field" id="summary" maxlength="255" name="summary" type="text" value="new setup" />
    </div>

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,671
    i see "need code help" but i do not see any code... i suspect my monitor is damaged

  3. #3
    Join Date
    Apr 2012
    Posts
    2

    see below

    --------------------------------------------------------------------------------

    I have written some code with values as below. And when the user inputs a url - I need to be able to get the values from the labels and save to my web page (I do not need the label name for now - just the content. I am using Javascript and HTML. I have looked at several websites on screen scraping but cannot understand so I am needing some help from the experts. Thanks in advance.
    I need the script to look for the values as they will be different each time from the URL that is entered into the textbox.

    1. User enters url where they want to get the values from
    2. Code searches for values and displays in iframe or table on same page as the textbox for the url.
    3. The last piece will be they will need to paste into another url that has the same fields but need the values populated.

    It is a copy and paste method.



    <INPUT id="url" TYPE="type" NAME="name" size="60"
    size="size"maxlength="maxlength" />



    This an example that is from the page I need to copy from:

    <label for="summary">Summary<span class="aui-icon icon-required"></span><span class="content">Required</span></label>
    <input class="text long-field" id="summary" maxlength="255" name="summary" type="text" value="new setup" />
    </div>

  4. #4
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    Screen scraping will only work in JavaScript if the URL is the same domain. Security issue. If you're trying to scrape from another domain, you need a server-side language like PHP, ColdFusion, ASP, etc.

  5. #5
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,671
    damn it seems i need to buy a new monitor

Thread Information

Users Browsing this Thread

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

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