Home > other >  For help! Python crawler
For help! Python crawler

Time:10-16




Def get_url (HTML) :
Url_list=[]
The pattern=re.com running (" this id, '(. *?) '", re S)
Ids=pattern. The.findall (HTML)
For id in ids:
Url_list. Append (' http://www.wanfangdata.com.cn/details/detail.do? _type=conference& Id="+ id)
Return url_list



Personal feeling is that this part of the problem, but don't know much about, small white has just started to learn

CodePudding user response:

https://blog.csdn.net/weixin_42565135/article/details/104266743

This is the source code

CodePudding user response:

Soup for text was wrong, so directly take [0], would be an error,,,

CodePudding user response:

Bother to guide how to change. I just started learning.
  • Related