使用Python访问网站进行操作

问题描述 投票:0回答:1

我需要在我的python代码中使用特定的网站(将英语翻译成我的语言),而且我也不想在python中使用googletrans,这是海量数据,因此我需要使用python来快速完成操作,有没有我能读到的参考文献或标题?或python中的任何文档?谢谢

python translation wikipedia
1个回答
1
投票

[您可能要考虑使用Selenium或BeautifulSoup与网站或网页抓取进行交互,但是如果您只想打开网站,则可以使用webbrowser模块。

import webbrowser

Google = 'https://www.google.com/?safe=active&safe=active'

webbrowser.open(Google)

这里有一些硒和BeautifulSoup的链接

https://pythonspot.com/selenium-webdriver/

https://realpython.com/beautiful-soup-web-scraper-python/

希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.