首页 > 解决方案 > 在 IEEE 中搜索并使用 python 抓取结果

问题描述

我想创建一个在 IEEE 网站中打开搜索的 python,如果我更改了 searchmetadata 和 searchabstract 将给出另一个结果

searchmetadata = "iPhone"
searchabstract = "apple"
url = "https://ieeexplore.ieee.org/search/searchresult.jsp?action=search&newsearch=true&matchBoolean=true&queryText=((%22All%20Metadata%22:+" searchmetadata + ")%20AND%20%22Abstract%22:" +searchabstract+")&ranges=1872_2015_Year"

https://ieeexplore.ieee.org/search/searchresult.jsp?action=search&newsearch=true&matchBoolean=true&queryText=((%22All%20Metadata%22 : iPhone )%20AND%20%22Abstract%22:苹果)&ranges=1872_2015_Year

import webbrowser
google = "iPhone"
google1 = "apple"
webbrowser.open_new_tab(
    'https://ieeexplore.ieee.org/search/searchresult.jsp?action=search&newsearch=true&matchBoolean=true&queryText=((%22All%20Metadata%22:'+google+')%20AND%20%22Abstract%22:'+google1+')')

我可以将整个页面保存为pdf吗

结果

标签: pythonpython-3.xpython-2.7

解决方案


推荐阅读