Page Scrape

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "$Page Scrape is a Browser Function. The function returns the text scraped from the correct page between two specified pieces of text. In order to scrape...")
 
Line 3: Line 3:
 
The function returns the text scraped from the correct page between two specified pieces of text.
 
The function returns the text scraped from the correct page between two specified pieces of text.
 
In order to scrape your data you can either save it to a list or set it to a variable.
 
In order to scrape your data you can either save it to a list or set it to a variable.
 +
 +
'''Text On Left Side:''' Text on the left side of the desired text being scraped.
 +
 +
'''Text On Right Side:''' Text on the right side of the desired text being scraped.
 +
 +
 +
 +
  
 
== Example ==
 
== Example ==

Revision as of 17:18, 1 May 2013

$Page Scrape is a Browser Function.

The function returns the text scraped from the correct page between two specified pieces of text. In order to scrape your data you can either save it to a list or set it to a variable.

Text On Left Side: Text on the left side of the desired text being scraped.

Text On Right Side: Text on the right side of the desired text being scraped.



Example

load html("<b>Hello World</b>")
set(#mylist, $page scrape("<b>", "</b>"), "Global")

Running the script scrapes the content between the specified bold tags.

The page scrape function returns only the phrase "Hello Word".


File:Pagescrape.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox