Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用python将twitter推文转换为图像_Python_Selenium_Twitter - Fatal编程技术网

使用python将twitter推文转换为图像

使用python将twitter推文转换为图像,python,selenium,twitter,Python,Selenium,Twitter,有谁能给我一些技巧,比如使用selenium,如何使用特定的标签从twitter获取推文,并将其像图像一样存储?我知道一些python代码,但我对这些都很陌生。我建议先阅读一个教程,然后将其中的代码或概念应用到一个单独的个人项目中 例如,类似这样的事情: 请询问具体问题 要截图显示Selenium中的某些元素,我们可以: element = driver.find_element_by_xpath("<xpath here>") element.screensho

有谁能给我一些技巧,比如使用selenium,如何使用特定的标签从twitter获取推文,并将其像图像一样存储?我知道一些python代码,但我对这些都很陌生。

我建议先阅读一个教程,然后将其中的代码或概念应用到一个单独的个人项目中

例如,类似这样的事情:


请询问具体问题

要截图显示Selenium中的某些元素,我们可以:

element = driver.find_element_by_xpath("<xpath here>")
element.screenshot('elementScreenshot.png')
element=driver。通过xpath(“”)查找元素
element.screenshot('elementScreenshot.png'))

做一些研究(设置selenium并导航到twiter),不要期望有人会为你编写代码。如果遇到问题,请寻求帮助。谢谢。我从这个开始,谢谢。这当然是我可以使用的东西