【发布时间】:2019-01-30 16:32:40
【问题描述】:
我刚刚开始学习如何使用 BeautifulSoup 进行网络抓取,并想编写一个简单的程序,该程序将通过 Instagram 中的 FullName 获取我偶像的个人资料链接(instagram url)。
示例:我将 FullName 列表存储在文件 fullname.txt 中,如下所示:
#cat fullname.txt
Cristiano Ronaldo
David Beckham
Michael Jackson
我的结果愿望是:
https://www.instagram.com/cristiano/
https://www.instagram.com/davidbeckham/
https://www.instagram.com/michaeljackson/
你能给我一些建议吗?
【问题讨论】:
-
现有的python问题有很多类似的。这不是一个具体的问题,请完善您的问题以提出比如何编码更具体的问题,这样您可能会找到更好的帮助。 cs.kent.ac.uk/people/staff/djb/ProblemSolving/doc1.n-S-3.html
标签: python beautifulsoup instagram instagram-api