使用google技术搜索整个web的工具

g-pyGle的Python项目详细描述


================================================== < BR>
使用谷歌技术搜索整个网络的工具 < BR>
皮皮拉链吉特| < BR>
索引
---- < BR>
1.`简介<;https://github.com/javinator9889/pygle 1-introduction>;。`_
2.`目的<;https://github.com/javinator9889/pygle 2-purpose>;。`_
3.`安装<;https://github.com/javinator9889/pygle 3-installation>;。`_
4.`说明<;https://github.com/javinator9889/pygle 4-instructions>;。`_
5.`贡献<;https://github.com/javinator9889/pygle 5-contribut>;。`_
6.`许可证<;https://github.com/javinator9889/pygle 6-license>;。`_ < BR>
1.介绍
------ < BR>
`Pygle<;https://github.com/javinator9889/Pygle>;``旨在成为一个*非常强大的*工具,只需**使用*谷歌*技术搜索整个网页**,没有**任何限制**(或几乎没有人)。 < BR>
只要输入*几行*代码,您就可以: < BR>
-在谷歌上执行"普通搜索";
-查看*google images*获取有关图片的所有信息;
-搜索*最新新闻*以及*谷歌新闻*上的**许多文章**;
-使用*谷歌专利*过滤并获取*专利*;
-在谷歌商店(google shops)查看数百种*不同产品*;
-在*谷歌图书*查找*书籍*、*杂志*等
-视频、视频和更多视频,请访问*谷歌视频* < BR>
由于速度是一个关键因素,所以我开发了这个库,以便在各种可能的情况下都是最快的。 < BR>
每次搜索的结果末尾都会包含一个小日志,其中包含web报废的**可用状态**。经过一些测试,我注意到使用'requests<;https://github.com/requests/requests>;``uuu**会减慢**总体速度。因此,您可以看到lib通过使用"urllib<;https://docs.python.org/3/library/urllib.html>;``来执行所有*Internet访问*,它有两个优点: < BR>
1.它包含在**all python installations**中,因此安装的库更少。
2.请求的总时间几乎减少了**70%**:使用*请求*,大约需要**3~4秒**。使用*urllib*,该时间现在变为大约**~1秒**或更少。 < BR>
基于上述动机,在执行*研究*时,lib**立即**返回将来用于收集结果的对象。这个对象也被称为**future**(*您可以在这里阅读更多信息*`` python concurrent futures<;https://docs.python.org/3/library/concurrent.futures.html concurrent.futures.future>;`),其功能如下: < BR>
-你想在谷歌做一项调查。
-如前所述,需要大约**~1秒**才能完成,因此您需要大量时间来做*其他不依赖于搜索结果的事情*。
-所以当你要求'pygle<;https://github.com/javinator9889/pygle>;``用google废弃web时,它会返回一个**future**对象。首先,它确实没有**任何内容**,但是当'pygle<;https://github.com/javinator9889/pygle>;``结束工作时,未来的对象将包含所有数据。
-`pygle<;https://github.com/javinator9889/pygle>;``自动检测系统的*处理器数量*,以便它可以加速所有进程。 < BR>
2.目的
---- < BR>
搜索从chrome或firefox这样的web浏览器上使用google*是非常容易的,但有时我们需要**信息**来支持我们正在开发或类似的程序。或者只是我们需要转换和处理这些信息。 < BR>
在这种情况下,"pygle<;https://github.com/javinator9889/pygle>;"才是真正的解决方案。通过使用功能强大的"python lists"<;https://docs.python.org/3/tutorial/datastructures.html"更多关于列表的信息">;"python dictionaries"<;https://docs.python.org/3/tutorial/datastructures.html"dictionaries">;"pygle"<;https://github.com/javinator9889/pygle>;`_会给你所有你需要的。让我以一个简单的搜索术语"test"为例: < BR>
1.这里是"pygle<;https://github.com/javinator9889/pygle>;"的简单代码: < BR>
…代码::python < BR>
来自pprint import pprint不是必需的,而是用于漂亮的打印
从pygle导入pygle < BR>
psearch=pygle(query="测试")
ft=psearch.doSearch()未来的对象
打印(ft.result()) < BR>
2.现在,当未来结束时,结果是: < BR>
…代码::python < BR>
[{'缓存的'u版本':'http://webcache.googleusercontent.com/search?Q=缓存:jnpwdum3zrgj:www.eljueves.es/news/test-que-meme-eres_+&;cd=1&hl=es&ct=clnk&gl=es',
"日期":"5月30日。2018’
"说明":"5月30日。2018年-奥尔维达拉斯洛梅约尔帕莱迪尔图
"我的儿子洛斯·梅姆斯。德斯库尔埃尔图约'
"在大学里学习…",
"链接":"http://www.eljueves.es/news/test-que-meme-eres_",
"标题":"测试:?Quémeme eres?-厄尔朱埃夫斯'},
{'缓存的'u版本':'https://webcache.googleusercontent.com/search?Q=缓存:nbx31tovq8uj:https://www.enfemenio.com/psico/tests-ssc17.html+&;cd=2&;hl=es&ct=clnk&;gl=es',
"日期":"不可用",
"说明":"测试个性化和智能化"
贝莱扎……托多·蒂波·德普丹·阿尤达
"一个简单的计划的决策。"
"链接":"https://www.enfemenio.com/psico/tests-ssc17.html",
"标题":"测试-个性化测试、智能测试、多功能操作系统测试、Belleza测试"
"恩菲梅尼诺"},
{'缓存的'u版本':'https://webcache.googleusercontent.com/search?Q=cache:pqfs2g6qngaj:https://www.muyinteresante.es/tests+cd=3&hl=es&ct=clnk&gl=es',
"日期":"不可用",
"说明":"测试与测试"。米德图·因根尼奥·洛克·萨贝斯
"形式上的偏滤和阿门纳",
"链接":"https://www.muyinteresante.es/tests",
"title":"测试智能和有趣的电子产品",
{'缓存的'u版本':'https://webcache.googleusercontent.com/search?q=cache:iq__5bkkj:https://www.testdevelopcidad.es/+&;cd=4&;hl=es&ct=clnk&gl=es',
"日期":"不可用",
"说明":"测试速度和校准时间"
"互联网连接ADSL O Fibraóptica。康普拉巴
"速度控制的真实数据",
"链接":"https://www.testdevlo页:1 "速度测试:用超速测试测量你的ADSL或纤维" Q=CACHE:M6VZOP8QMESJ:https://www.arealme.com/mental/en/+&;cd=5&;HL=ES&;ct=clnk&;GL=ES', "日期"是指"一个星期"
描述性':智力测试。你的精神年龄是多少?这是… 他的名字是日裔,名叫。。。请你对他说实话 ""回答问题"。
link':"https://www.arelme.com/mental/en/" 【关键词】智力年龄测试(这是你的智力年龄)【我】
Q=CACHE:Gu4xSuoir0J:https://www.clara.es/temas/test+&;CD=6&;HL=ES&;CT=CLNK&;GL=ES', "日期"是指"一个星期" 我们的饮食最好吃的是什么? 减肥最好的审美治疗方法及其他方法 最适合你的食物真是太美了。
link'
title> "心理学,时尚……"
Q=CACHE:2C5ClozskoJ:https://testfuncidos.es/+&;CD=7&;HL=ES&;CT=CLNK&;GL=ES', "日期"是指"一个星期" 《描述》:《测试》是《最有趣的测试》 因特网:心理性格智力测试(英文版) "为孩子们的爱"
link'. 《有趣的测试》第124期,网络上最有趣的测试
Q=CACHE:HBP-W20VAWEJ:https://www.psychiactive.com/tests/personality/test-personal-5factors.htm+&;cd=8&;HL=ES&;ct=clnk&;GL=ES', "日期"是指"一个星期" 《描述》:《从你的角度评价人格的免费测试》 五个维度,叫做五个大维度。
link':"https://www.psychoactive.com/tests/personality/test-personal-5factors.htm",
title>
Q=CACHE:3 U 8PSVUNW0J:https://www.nationalgeographic.com.es/temas/tests-ng+&;CD=9&;HL=ES&;CT=CLNK&;GL=ES', "日期"是指"一个星期"
description':用国家测试测试测试你的知识 【单词】:自然历史地理国家科学 历史上的城市人物。。。
Link':"https://www.nationalgeographic.com.es/temas/tests-ng', 【单词】:国家地理史上最好的测试【单词】
Q=CACHE:7IUEJulnkMJ:www.movstar.es/individual/test-de-speech/+&;CD=10&;HL=ES&;CT=CLNK&;GL=ES', "日期"是指"一个星期" 如果您发现有错误,请尽管发表评论! 安装设备所用的速度测试,如E." "移动纤维报价-63折扣900 104…"
link'. "title":"测试速度ADSL和纤维-测量你的速度" 【中文解释】:互联网电影网
""秒"。
How>
related> "有意思的测试" 《青少年测试》杂志社 《性格测试》杂志投稿人 玩得开心的测试,玩得开心。 "测试"的意思是 《选美测试》杂志社 ""爱情测试"。
stats'
Overall Utime>
parsing>
URL>https://www.google.com/search?Q=测试。 他是耶稣。
at this case,I am in Spain,so the results language are based on your**current location**(if you*do not specify one*) 他是耶稣。
If another page must be searched,all the methods start with:` with `。You can find more instructions at the ` wiki<;https://github.com/javinator9889/pygle/wiki>;'uUU. 他是耶稣。 第三条。安装 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 他是耶稣。
as usual,you have the ` PIP<;https://pypi.org/project/pip/>;` uu mode or the ` easy install<';https://setuptools.readthedocs.io/en/latest/easy/.uu install.html>;'uuu.gt methods: 他是耶稣。 ♪The commands for windows are the same but without♪♪Sudo♪ 他是耶稣。
Installing Via Pypi(PIP)* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 他是耶稣。
In some Linux Systems,*PIP*is not directly available in command line,so we have two options: 他是耶稣。
Installing PIP for Python 3*(assuming that you**already have Python 3 instalLED**] 他是耶稣。 他是耶稣。Code::Bash 他是耶稣。
35;>Debian Systems> Sudo apt update&;&;sudo apt upgrade Sudo apt-get install pyton3-pip 他是耶稣。 他是耶稣。Code::Bash 他是耶稣。
35;>35;;centos′35;>35; Sudo Yum install Pyton34-Setuptools 我的意思是:安装钢管 他是耶稣。
installing ` pygle<;https://github.com/javinator9889/pygle>;>uUU: 他是耶稣。
Once you did what said before,now you are able to install ` pygle<;https://github.com/javinator9889/pygle>;>U U 他是耶稣。 他是耶稣。Code::Bash 他是耶稣。
35;>35;>35;-35;;using PIP®35;-35;>35;…… 我西南Pip3安装G-Pygle 他是耶稣。
35;>35;if PIP3 is not available/>35;>35; Sudo Pip install G-Pygle(西班牙语) 他是耶稣。
35;;Via Python 3′35;>35; 西南Python3-M Pip Install G-Pygle(英文版) 他是耶稣。
35;>35;without admin permissions> Pip3 install-u g-pygle(英文版) 您所选择语言的 Pyton3-m pip install-u g-pygle(英文版) 他是耶稣。 安达林大道易斯安装店。 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 他是耶稣。
Basically,we will install*python 3*on our systems,and then we will be able to install ` pygle<;https://github.com/javinator9889/pygle>;>UU: 他是耶稣。
-`windows<;https://realpython.com/installing python/windows>;。`_
-`Linux(所有系统)<;https://realpython.com/installing python/Linux>;。`_
-`mac os<;https://realpython.com/installing python/macos-mac-os-x>;。`_
-`ios<;https://realpython.com/installing python/ios iphone ipad>;。`_
-`android<;https://realpython.com/installing python/android phones平板电脑>;。`_ < BR>
-现在,我们可以安装"pygle<;https://github.com/javinator9889/pygle>;"如下: < BR>
…代码:BASH < BR>
使用简易安装####
Git克隆https://github.com/javinator9889/pygle.git
CD皮格尔
sudo python3 setup.py安装 < BR>
4.指令
------ < BR>
每当我们想使用"pygle<;https://github.com/javinator9889/pygle>;"时,我们将执行以下操作: < BR>
…代码::python < BR>
从pygle导入pygle < BR>
`pygle<;https://github.com/javinator9889/pygle>;``允许我们**启用历史记录**和**保留会话cookies**(以便更快地浏览): < BR>
…代码::python < BR>
psearch=pygle(启用历史记录=true,使用会话cookies=true) < BR>
正常情况下,`pygle<;https://github.com/javinator9889/pygle>;``仅当我们添加一个查询时,才会执行正常的谷歌搜索: < BR>
…代码::python < BR>
psearch.withquery("我们要搜索的内容") < BR>
此外,对于每种方法,您都可以继续*定义您的需求*而无需**创建数千行**代码: < BR>
…代码::python < BR>
psearch.withquery("我们要搜索的内容").withcontainingtwoterms("term 1","term 2").withtextintitle("title中的文本").withsafededeactivated().withsearchstartpositionat(25) < BR>
完成后,搜索就简单到: < BR>
…代码::python < BR>
ft=psearch.dosearch() < BR>
等待结果可用
搜索结果=英尺结果() < BR>
最后,我们可以恢复(如果启用)刚才搜索的所有历史记录: < BR>
…代码::python < BR>
历史=psearch.gethistory() < BR>
或打印历史记录
psearch.pprinthistory() < BR>
*如果您想了解更多信息,请查看*`wiki<;https://github.com/javinator9889/pygle/wiki>;`。 < BR>
*保守*
~~~~~~~~ < BR>
此库中包含的另一个功能是可以在**tor**下工作。 < BR>
如果你不知道这是什么,**tor**是通过隐藏自己的代理匿名浏览网页的*最简单的方式*。您可以在这里阅读更多内容<;https://lifehacker.com/what-is-tor-and-should-i-use-it-1527891029>;`。 < BR>
如果要*使用此功能*,则需要在系统上安装TOR。以下是系统说明: < BR>
-`windows<;https://www.quora.com/how-do-i-run-tor-headless-on-windows-10>;。`_
-`linux<;https://www.torproject.org/docs/debian.html.en>;。`_
-`macos<;https://www.torproject.org/docs/tor doc osx.html.en>;。`_
-`android<;https://www.torproject.org/docs/android.html.en>;。`_ < BR>
最后,在您的系统上配置TOR后,为了使用它,简单到(*遵循最新示例*): < BR>
…代码::python < BR>
ft=psearch.dosearch(torify=true) < BR>
5.贡献
---- < BR>
如果你真的很欣赏我的工作,你可以为这个项目做出完美的贡献,例如: < BR>
1.如果你发现了**Bug**128270;128030;,你可以在"问题"上发表评论,https://github.com/javinator9889/pygle/issues>;``你发生了什么,*我会努力找到解决方案*。
2.您可以**分叉**此存储库并*包含您认为的所有内容*`pygle<;https://github.com/javinator9889/pygle>;``uuu应该有的。创建一个pull请求,如果我喜欢您的更改,我会将其包含在正式的repo中,您将自动成为一个开发人员和维护人员。
3.另外,如果你是一个伟大的粉丝,你可以点击这里把你想要的捐赠给我。 < BR>
把我捐出来| < BR>
6.许可证
---- < BR>
: < BR>
版权所有(C)2018-Javinator9889-Pygle < BR>
此程序是免费软件:您可以重新分发和/或修改
根据由
自由软件基金会,许可证的第3版,或
(由您选择)任何更高版本。 < BR>
分发此程序是希望它有用,
但没有任何保证;甚至没有
适销性或特定用途的适用性。见
GNU通用公共许可证了解更多详细信息。 < BR>
您应该已经收到GNU通用公共许可证的副本
与此程序一起使用。如果没有,请参见<;https://www.gnu.org/licenses/>;。` < BR>
…| pypi图像::https://img.shields.io/badge/v1.24%20-pypi-green.svg
:目标:https://pypi.org/project/g-pygle/
…| zip图像::https://img.shields.io/badge/package%20-zip-blue.svg
:目标:https://github.com/javinator9889/pygle/archive/master.zip
…| git图像::https://img.shields.io/badge/package%20-git-red.svg
:目标:https://github.com/javinator9889/pygle.git
…|捐赠给我图片::http://pluspng.com/img-png/paypal-invent-button-png-paypal-invent-button-png-file-png-image-200.png
:目标:https://paypal.me/javinator9889 < BR>
平台:未知
分类器:开发状态:5-生产/稳定
分类器:编程语言::python
分类器:许可证::OSI批准::GNU通用公共许可证v3(GPLV3)
分类器:自然语言:英语
分类器:编程语言::python::2.6
分类器:编程语言::python::2.7
分类器:编程语言::python::3
分类器:编程语言::python::3.1
分类器:编程语言::python::3.2
分类器:编程语言::python::3.3
分类器:编程语言::python::3.4
分类器:编程语言::python::3.5
分类器:编程语言::python::3.6
分类器:编程语言::python::3.7
描述内容类型:文本/x-rst < BR>

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

推荐PyPI第三方库


热门话题
如何在Java中创建固定大小的泛型数组?   javascript Paypal Braintree订阅付款   使用BufferedReader和PrintWriter实现java数据持久化?   类似于iCloud的java唯一google id   java使用网格布局和抓取组合框   java我的while循环无限运行,当我检查它时,它说while循环没有主体,而我认为它显然没有主体   java LWJGL碰撞3D OpenGL   java将Tibco RV切换到WebSphere MQ?   java如何使用Postman从curl发布REST   java是超级的,在通用通配符中是独占的吗?   在swing 1.5中,java在指定时间后自动关闭非模态对话框   java PrimeFaces饼图在JSF 2.0中不显示   java如何在Spring MVC中提供带有xml配置的默认bean实现?   java在eclipse中使用按钮关闭JFrame   java Sqoop jar已弃用   Java中的Getter方法