This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This is sample code for building a web scraper. | |
| // | |
| // For this sample, we use | |
| // http://www.citysearch.com/profile/10192700/lockhart_tx/black_s_barbecue.html | |
| // as a sample listing we want to scrape. | |
| // | |
| // For the full crawler, we will assume the crawl | |
| // starts from http://www.houzz.com/professionals/ | |
| var EightyApp = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X GET "https://your_token:@api.datafiniti.net/v2/data/locations/download?view=location_json&q=postalcode:78701 AND dateUpdated:[2014-01-01 TO *]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X GET "https://your_token:@api.datafiniti.net/v2/data/locations/download?view=location_json&q=postalcode:78701 AND dateUpdated:[2014-01-01 TO *]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X PUT https://your_user_token:@api.80legs.com/v2/urllists/downloadwebsites-1 -H "Content-Type: application/octet-stream" --data-binary "[\"http://www.80legs.com\",\"https://www.datafiniti.net\",\"http://www.harkavagrant.com\"]" -i | |
| > curl -X PUT https://your_user_token:@api.80legs.com/v2/crawls/downloadwebsites -H "Content-Type: application/json" -d "{\"app\": \"CrawlInternalLinks.js\", \"urllist\": \"downloadwebsites-1\", \"max_depth\": 20, \"max_urls\": 100000 }" -i | |
| > curl -X GET https://your_user_token:@api.80legs.com/v2/results/downloadwebsites |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X PUT https://your_user_token:@api.80legs.com/v2/urllists/crawlURLs-1 -H "Content-Type: application/octet-stream" --data-binary "[\"http://www.80legs.com\"]" -i | |
| > curl -X PUT https://your_user_token:@api.80legs.com/v2/crawls/countURLs -H "Content-Type: application/json" -d "{\"app\": \"CrawlInternalLinks.js\", \"urllist\": \"crawlURLs-1\", \"max_depth\": 20, \"max_urls\": 100000 }" -i | |
| > curl -X GET https://your_user_token:@api.80legs.com/v2/crawls/countURLs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X GET "https://your_token:@api.datafiniti.net/v2/data/locations/download?view=location_json&q=postalcode:78701" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X GET "https://your_token:@api.datafiniti.net/v2/data/locations/preview?view=location_json&q=name:%22Kagan%20Creative%22" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "url": "http://www.80legs.com/", | |
| "result": "your_data_here" | |
| }, | |
| { | |
| "url": "http://www.techcrunch.com/", | |
| "result": "your_data_here" | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "total": 19894, | |
| "records": [ | |
| { | |
| "address": "222 Merchandise Mart Plz Ste 111", | |
| "categories": [ | |
| "Coffeehouses", | |
| "Grocery Stores", | |
| "Coffee & Tea Shops", | |
| "Restaurants" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl -X PUT https://your_user_token:@api.80legs.com/v2/apps/full_page_content.js -H "Content-Type: application/octet-stream" --data-binary @/path/to/full_page_content.js -i |