Scraping data from the tag names in python

前端 未结 2 858
伪装坚强ぢ
伪装坚强ぢ 2021-01-25 06:40

Hi I am trying to scrape user data from a website. I need User ID which are available in the tag names itself.I am trying to scrape the UID using python selenium and beautiful s

2条回答
  •  渐次进展
    2021-01-25 07:35

    you can use .get method and scrape the tag names easily,

    in your question;

    soup.get('id')

    of course, if there are many id tags exist, you need to use more specific tags with find or find_all method before using the .get

提交回复
热议问题