FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tutorials/python-tutorials/google_search.py at main · ackercode/tutorials · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ackercode
/
tutorials
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
14
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tutorials
/
python-tutorials
/
google_search.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (12 loc) · 706 Bytes
Breadcrumbs
tutorials
/
python-tutorials
/
google_search.py
Copy path
File metadata and controls
17 lines (12 loc) · 706 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# instalar a biblioteca - pip install google-search
from
googlesearch
import
search
#Python será a palavra que vamos pesquisar
#num_results será o numero de resultados que será mostrado
#Em lang você pode definir a linguagem da busca
python_search
=
search
(
"Python"
,
num_results
=
10
,
lang
=
"br"
)
#O print de python_search mostrará uma lista com os top 10 links
print
(
python_search
)
#resultado
# ['https://www.python.org/', 'https://www.python.org/', 'https://en.wikipedia.org/wiki/Python_(programming_language)',
# 'https://pt.wikipedia.org/wiki/Python', 'https://python.org.br/', 'https://www.codecademy.com/catalog/language/python',
# 'https://www.udemy.com/topic/python/', 'https://pypi.org/']
Back
|
FazBrowse Home
|
New Git URL