iFrame? content

Hi there,

I just came across your extension and it's awesome!

Now I am having a difficulty extracting book description from Amazon. Please apologize my lack of knowledge but I am an "amateur scraper" :slight_smile:

This is the element: https://ibb.co/pfc8KCp - and it seems to be an iFrame element (?) and I am unable to select & extract it with Web Scraper. Is there a workaround?

Thank you!

Unfortunately, you will not be able to get your hands on the content within the an iframe.

This is a problem that comes up a lot (grabbing text from within an IFrame.

@system: take a look at this post - perhaps you can implement it in the next release?

Is there any way you can see or guess the iFrame URL?
I had a similar issue where I can clearly see the iframe URL in the code but it gets redirected to another iframe upon loading.

In theory if you set the sitemap URL to the iframe URL it works. I also noticed this iframe:iframe.

Simply appending iframe:iframe to your iframe selectors will make it work :wink:

Yea, though you may have problems picking the the selector within an iframe if you try to use the WS picker. Yuu'd likely need to use the Chrome inspector to find the right selector. Also, I find that Preview selector does not seem to work for iframes, but Preview data will work if you have picked the right selector.

I faced the same problem. Here is the solution:
https://gist.github.com/destroytoday/6706265

Hi! Here is my solution.
Copy and paste my sitemap ( extract the description of the books published in amazon )

{"_id":"libros","startUrl":["https://www.amazon.com/s?k=libros&__mk_es_US=%C3%85M%C3%85%C5%BD%C3%95%C3%91&ref=nb_sb_noss_2"],"selectors":[{"id":"link_products","type":"SelectorLink","parentSelectors":["_root"],"selector":".a-size-mini a","multiple":true,"delay":0},{"id":"description","type":"SelectorText","parentSelectors":["link_products"],"selector":"iframe:iframe div#iframeContent","multiple":false,"regex":"","delay":0}]}