Could you tell me how to grab this kind of text? (python crawler)

/:, and then grab the text of the tag. But that "France / Germany" does not seem to belong to any label, how to grasp this kind of text?

Mar.10,2021

<span class="pl">/:</span>([\s\S]*)<br>[\s\S]*

there is nothing that cannot be solved by regularization ([\ s\ S] *) this is the production country

what you are braising is Douban. Haha, if Douban grabs too much, it will limit ip.


Building owner, learn about xpath, right click and come out. You just need to determine the html structure, which is much easier to use than beautifulsoup.


there are still traces to follow. After the span, he uses the words of python to get between the two pl and then within the quotation marks
you can refer to Google's puppeteer for advanced crawling


there are many ways to crawl this kind of information.
1) one of the most popular ways to get drunk is now a popular way to crawl python.
https://www.crummy.com/softwa. this is an open document for crawlers. It is very simple to use
2) PHP can also do crawler processing
https://doc.querylist.cc/ this is the document address, and it is also very simple.
3) node.js can also be used as a crawler
summary. There are many ways to write crawlers, depending on which one you prefer and which one is more suitable


.

method 1: regular strong invincible, look upstairs

method 2: Beautifulsoup solution (the subject is beautifulsoup, if not)
"France / Germany" does not seem to belong to any tag, but it should belong to the parent tag of < span class= "pl" > (look up). If the parent tag is a, then the iterators of all strings under the a tag can be obtained through the strings attribute of the an object, and then indexed

.
  

Don't recommend using regularities to parse markup type documents any more. Seeing that such regular strong and invincible remarks are too big, will you stop misleading others like this?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37148-2c080.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37148-2c080.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?