Sometimes you're lucky, and a URL points directly to a file with the data you want...
bjc.edc.org/Jan2017/bjc-r/cur/programming/4-internet/2-gps-data/GPS-NYC.csv
http://
and proxied http://
blocks supply that part of it, so you just type the rest of the URL.split
block breaks up a string of text according what you select in the second input slot and puts the strings into a list as items.Pull out the bottom right corner of the coordinates stage watcher so that you can see the entire list.
You will need to use the split
block a second time. Experiment with different options for the second input slot. Read the split
help screen (right-click a split
block and choose "Help") if you need ideas.
Use map
to perform a function (in this case, split
) to each item in the input list.
Sometimes you're not lucky, and the information you want is buried in a mass of HTML code. Extracting the information from the formatting is called scraping the web page.
www.weatherstreet.com/weather-forecast/New-York-NY-10001.htm
proxied http
block with this URL and reports a list of the lines of HTML starting from "<body". The report of your script should look like this: