• Stars
    star
    398
  • Rank 107,700 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created about 4 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Python library for scraping the Google search engine.

googlesearch

googlesearch is a Python library for searching Google, easily. googlesearch uses requests and BeautifulSoup4 to scrape Google.

Installation

To install, run the following command:

python3 -m pip install googlesearch-python

Usage

To get results for a search term, simply use the search function in googlesearch. For example, to get results for "Google" in Google, just run the following program:

from googlesearch import search
search("Google")

Additional options

googlesearch supports a few additional options. By default, googlesearch returns 10 results. This can be changed. To get a 100 results on Google for example, run the following program.

from googlesearch import search
search("Google", num_results=100)

In addition, you can change the language google searches in. For example, to get results in French run the following program:

from googlesearch import search
search("Google", lang="fr")

To extract more information, such as the description or the result URL, use an advanced search:

from googlesearch import search
search("Google", advanced=True)
# Returns a list of SearchResult
# Properties:
# - title
# - url
# - description

If requesting more than 100 results, googlesearch will send multiple requests to go through the pages. To increase the time between these requests, use sleep_interval:

from googlesearch import search
search("Google", sleep_interval=5, num_results=200)

More Repositories

1

Nv7Haven

The server for Nv7Haven!
Go
25
star
2

bpp

A B++ parser, interpreter, and compiler, written in Go!
Go
8
star
3

elemental7

TypeScript
5
star
4

gocl

An abstraction layer on the go-cl library.
Go
4
star
5

GPGame

An abstraction layer on the Kivy GPU accelerated engine.
Python
3
star
6

scratchy

Code in Scratch with Go!
Go
3
star
7

nv7haven_web

A group of fun programs!
Svelte
3
star
8

nv7haven.com

A group of fun WebAssembly programs.
Go
3
star
9

buildprog

Build progress for Go!
Go
2
star
10

go2c

Convert Go programs to C programs!
Shell
2
star
11

firebase

Firebase web SDK bindings for Go.
Go
2
star
12

CryptoMail

E-mail, but with end-to-end encryption!
JavaScript
2
star
13

BackGammon

A terminal BackGammon
Go
1
star
14

FunRepository

A repository for all the fun stuff I code.
Go
1
star
15

goll

A(nother) Go to LLVM compiler!
Go
1
star
16

minesweeper

A minesweeper solver!
Rust
1
star
17

imogi

Convert images into twemoji!
Go
1
star
18

go-cl

Golang OpenCL bindings.
Go
1
star
19

gdo_client

Remotely open your garage door, using your raspberry pi!
TypeScript
1
star
20

opencvl

A pipeline-based system for layering OpenCV and OpenCL image transforms.
Go
1
star
21

nv7-status

The Nv7 Status website!
Svelte
1
star
22

marker

A Finder utility to remember where you keep your files!
Go
1
star
23

sherpa

The code for the SHERPA robot!
C++
1
star
24

average-joe

Just your average joe.
Go
1
star
25

Nv7-Github

Profile Repo
1
star
26

scratch

A library to create scratch projects!
Go
1
star
27

elemcraft

Elemental, but 2d!
Svelte
1
star
28

graphwhiz

A UI for graphviz!
Go
1
star
29

graph

Making a simple graphing calculator using only pygame!
Python
1
star
30

NVEdit

A quick simple easy-to-use image editor
Go
1
star
31

elemental-4

A WebAssembly version of Carykh's Elemental 3 Game.
Go
1
star
32

vcomm

RPC of websockets!
Go
1
star
33

gravity

A gravity simulation!
Rust
1
star
34

Fyout

A graphical layout builder for the fyne UI library.
Go
1
star
35

studier_web

The web version of https://github.com/Nv7-Github/studier
Svelte
1
star
36

chromego

An abstraction layer on the WebDriver API using selenium.
Go
1
star
37

robot_tour

My code for the 2023-2024 science olympiad robot tour challenge!
C++
1
star
38

govomp

Vulkan compute shaders, with Go!
Go
1
star