Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Automated data collection from the net database

  1. Jan 5, 2004 #1
    hi ..i have a little problem here...if u go to this site,
    http://www.singaporepools.com.sg/fd_results3yrs/
    u see the scroll down button....there are a lot of dates...each date links to a page in which i want to copy some data into a text file.
    and this apples to all other dates.....

    anyone know any program which can do this job?
     
  2. jcsd
  3. Feb 20, 2004 #2
    load into array(single dimentional, one cell per character)
    open "C:\Textfile.txt" for output as #1
    for x = 2 to ubound(array()) - 2
    if isnumerical(array(x)) then
    if isnumerical(array(x + 1)) then
    if isnumerical(array(x + 2)) then
    if isnumerical(array(x - 1)) then
    if isnumerical(array(x - 2)) then
    print #1, array(x)
    end if
    end if
    end if
    end if
    end if
    next x
    close #1

    Hopefully this code will help you
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Automated data collection from the net database
Loading...