一个python3库,用于duckduckgo即时答案api和通过浏览器进行全面搜索。

DuckDuckGo-Python3-Librar的Python项目详细描述


Python3库,用于使用DuckDuckGo API进行搜索,并通过浏览器进行完全搜索。

版权所有(c)2016阿披实浦尼亚abhishekpoonia22@gmail.com>;

根据GNU Affero通用公共许可证发布,详情见许可证。

python3版本使用duckduckgo的即时应答api。

用法:

>>> import DuckDuckGo
>>> q = DuckDuckGo.search('Modi')
>>> q.type
'Dis
ambiguation'
>>> q.abstract.abstract
q.abstract.abstract         q.abstract.abstract_text
q.abstract.abstract_source  q.abstract.abstract_url
>>> q.abstract.abstract_text
''
>>> q.abstract.heading
'Modi'
>>> q.display(limit = 1)
https://duckduckgo.com/Narendra_Modi
Narendra Modi The 14th and current Prime Minister of India, in office since 26 May 2014.
--------------------------------------------------
>>> q.abstract.abstract_url
'https://en.wikipedia.org/wiki/Modi'
>>> q.display()
https://duckduckgo.com/Narendra_Modi
Narendra Modi The 14th and current Prime Minister of India, in office since 26 May 2014.
--------------------------------------------------
https://duckduckgo.com/Modi_Group
Modi Group An Indian Business conglomerate based in New Delhi, India.
--------------------------------------------------
https://duckduckgo.com/monochorionic_twins
Monochorionic-Diamniotic Monochorionic twins are monozygotic twins that share the same placenta.
--------------------------------------------------
https://duckduckgo.com/M%C3%B3%C3%B0i_and_Magni
Móði The sons of Thor. Their names mean "Brave" and "Strong," respectively.
--------------------------------------------------
https://duckduckgo.com/modi_alphabet
Modi script A script used to write the Marathi language, which is the primary language spoken in the state of...
--------------------------------------------------
>>>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
反射Java反射:高负载下的NoSuchMethodException   java RxJava:one request>list of Integer>sequence of requests for each int>result to list   java为什么循环之前索引会增加   JavaSpring远程处理和RESTfulURL   java Hibernate搜索仅对我的实体的一部分进行索引   使用DPAD快速滚动时,java RecyclerView onCreateViewHolder调用过多   java将JSON解析到一个表中   java导航抽屉标题textview nullpointerexception   基于接口的Java链接队列   java Guice运行时依赖项参数重新注入   java展平/压缩ZSH中的深度嵌套目录   JavaSpring:Http406此请求标识的资源只能   java如何制作Android启动器图标   Java代码在windows上显示不正确(包含希腊语句子)   使用yourkit进行内存分析所用的java时间   java为什么可以序列化属性而不能序列化对象本身?