BeautifulSoup
BeautifulSoup and find
I have a html code: <div id=\'div1\'> <div id=\'d\'> </div> <p></p> </div>[详细]
2023-03-14 23:04 分类:问答Parsing html using BeautifulSoup in Python
I wrote some code to parse html, but the result was not what I wanted: import urllib2 html = urllib2.urlopen(\'http://dummy\').read()[详细]
2023-03-14 01:09 分类:问答Automated browsing of complicated web pages
I have a project that will involve heavy automation of complicated web pages. I realize there are Mechanize and Beautiful Soup, but don\'t these break when dealing with large amounts of DOM scripting[详细]
2023-03-13 12:02 分类:问答renderContents in beautifulsoup (python)
The code I\'m trying to get working is: h = str(heading) # \'<h1>Headi开发者_StackOverflowng</h1>\'[详细]
2023-03-13 04:32 分类:问答BeautifulSoup -- Prevent Tag From Automatically Closing
BeautifulSoup is choking on parsing the follo开发者_StackOverflowwing code: >>> soup = BeautifulSoup(\'<img src=\"#\" alt=\"Click Here >\" border=\"0\" />\')[详细]
2023-03-13 03:10 分类:问答Python - multiple HTML page parsing to a single TXT file
I\'m trying to parse specific content from an X number of HTML files to a single TXT file. I have dirtily coded the following:[详细]
2023-03-12 11:04 分类:问答Could not scrape data in English, help!
I have a website that I\'m trying to scrape using Python & BeautifulSoup. The site itself can be viewed in 2 languages(Thai or English); all you have to do is to click on either the Thai or UK fla[详细]
2023-03-12 02:10 分类:问答finding a tag based on what it surrounds (using beautifulsoup)
I\'m using BeautifulSoup to parse some HTML.Let\'s say I have the following HTML in a BeautifulSoup called soup:[详细]
2023-03-11 08:45 分类:问答Need help specifying a ending while condition
I have written a Python script to download all of the xkcd comic images. The only problem is I can\'t tell it to stop when it gets to the last one... Here is what I have so far.[详细]
2023-03-10 23:47 分类:问答Is it possible to code search engine in beautiful Soup
I am using Beautiful Soup for parsing web pages. Are there any functions in BS which i can use i making search engine or crawling开发者_开发知识库 the website to index it in database.No, BeautifulSou[详细]
2023-03-10 17:06 分类:问答