Skip to content

Instantly share code, notes, and snippets.

@rmateu
Created February 6, 2018 21:59
Show Gist options
  • Save rmateu/a6a1598b9a166684ac7f46f8e4ca14eb to your computer and use it in GitHub Desktop.
Save rmateu/a6a1598b9a166684ac7f46f8e4ca14eb to your computer and use it in GitHub Desktop.
Herramienta para extraer ASINs por página de Amazon

ASIN Scrapper

Install (Chrome)

  • In Chrome, click Bookmarks->Bookmark Manager.
  • You should see a new tab with the bookmarks and folders listed.
  • Select the “Bookmarks Tab” folder on the left.
  • Click the “Organize” link, then “Add Page” in the drop down.
  • You should see two input fields. Type the name of the bookmark you would like (i.e., ASIN Scrapper) in the first field. Paste the javascript code below into the second field.

javascript:(function() %7B%0D%0A%2F%2Fvar%20re%20%3D%20%2F%5Cs%2A%28%5B%5E%5B%3A%5D%2B%29%3A%5C%22%28%5B%5E%22%5D%2B%29%22%2Fg%3B%0D%0Avar%20re%20%3D%20%2F%5Cs%2A%28B0%5B%5E%5CW_%5D%7B8%7D%29%2Fg%0D%0A%2F%2Fvar%20s%20%3D%20%27%5Bdescription%3A%22aoeu%22%20uuid%3A%22123sth%22%5D%27%3B%0D%0Avar%20s%20%3D%20document.documentElement.outerHTML%3B%0D%0Avar%20m%3B%0D%0Ado%20%7B%0D%0A%20%20%20%20m%20%3D%20re.exec%28s%29%3B%0D%0A%20%20%20%20if%20%28m%29%20%7B%0D%0A%20%20%20%20%20%20%20%20console.log%28m%5B1%5D%29%3B%0D%0A%20%20%20%20%7D%0D%0A%7D%20while%20%28m%29%3B%0D%0A%7D )();

Use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment