doctype scrape

21 views
Skip to first unread message

회로왕김

unread,
Dec 4, 2017, 11:39:38 AM12/4/17
to beautifulsoup
Hi, I'm studying alone with a book about Python.

With BeautifulSoup, I'd like to scrape some information from this site: http://finance.naver.com/item/coinfo.nhn?code=056190

There was a content which was declared DOCTYPE.(I attatched a png file)

How can I scrap that #document ?



And I referred ur site "http://www.crummy.com/software/BeautifulSoup/bs4/doc" , but I couldn't find a class about scrape DOCTYPE.

Where can I find it?



I'm really sorry that my English is not good, but I really need your help!

Plz..Thank you!



noname01.png

Jim Tittsler

unread,
Dec 4, 2017, 8:48:34 PM12/4/17
to beautifulsoup
On Tue, Dec 5, 2017 at 1:08 AM, 회로왕김 <ghks...@gmail.com> wrote:
> With BeautifulSoup, I'd like to scrape some information from this site:
> http://finance.naver.com/item/coinfo.nhn?code=056190
>

The data you want is embedded in an IFRAME, so from the original page,
get the URL in the src attribute of the IFRAME and then fetch and
scrape that second page.
Reply all
Reply to author
Forward
0 new messages