Skip to content

Instantly share code, notes, and snippets.

@shiondev
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save shiondev/249c41badc1951fc03c9 to your computer and use it in GitHub Desktop.

Select an option

Save shiondev/249c41badc1951fc03c9 to your computer and use it in GitHub Desktop.
Tutorials > Counting How Many URLs a Website Has
> 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment