[EN] Senginta: Traditional Search Engine Scrapper
Tags: searchengine, googlescrapper, baidu, opensource
Published: 2021-05-04 05:16:10

Senginta, a web scraper that is able to retrieve results from several Search Engine Products. Yours sincerely to Search Engines that do not provide Captcha. 👏

In these days Search Engines increasingly have a role to introduce something. Many people have learned the properties of a Search Engine, so that their blog or product can rise to the highest level to get large visitor traffic.

It's not just a business need. Search Engines are also able to search for various things that can be used as data entities. Only with the full name, they were able to find results relevant to that name.

But have we ever thought about automating the results given? Suppose you want to speed up the process of saving lots of images, videos, pdf from search engines, wouldn't that be great?

Unlike the current one. We have to do these things manually.
Senginta comes with the ability to help with the work earlier. If you are familiar with the name JSON, it is a format used by multiple systems to communicate with each other.

> If you are confused, please DM me on [Instagram](https://www.instagram.com/do.exploit/) and ask.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3j3rd5mqtgjeafomd9p0.png)

In this case, other systems can be integrated with Senginta via Python Module with JSON format and other formats. With just a small amount of code below, you can get search results from a complete Search Engine.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3oe9g09ekbhw4zc7gqjx.png)

Even other Search Engine products have also been applied.
* Default Google Search
* Google Books
* Google News
* Google Video
* Google Shop
* Google Scholar
* Default Baidu Search

### Preparation
1. Make sure your python version is 3.8 or above.
```bash
$ python3 --version
Python 3.8.3rc1 
OR
$ python --version
Python 3.8.3rc1
```
2. Install Senginta using the PIP installer.
```bash
$ pip3 install senginta
...
OR
$ pip install senginta
...
```
Done!

## How to use: Senginta
https://youtu.be/aIZFELGtfWY

[0:10](https://www.youtube.com/watch?v=aIZFELGtfWY&t=10s)​ Google Search
```python
GoogleSearch = GSearch('Tokopedia Github', 1, 2)
print(GoogleSearch.to_json())
```
[0:47​](https://www.youtube.com/watch?v=aIZFELGtfWY&t=47s) Google Books
```python
GoogleBooks = GBooks('Python Programming', 1, 2)
print(GoogleBooks.to_json())
```
[01:35](https://www.youtube.com/watch?v=aIZFELGtfWY&t=95s)​ Google News
```python
GoogleNews = GNews('Idcloudhost', 1, 2) 
print(GoogleNews.to_json())
```
[02:23](https://www.youtube.com/watch?v=aIZFELGtfWY&t=143s)​ Google Shop
```
GoogleShops = GShop('Remote TV', 'Rp', 1, 2)
print(GoogleShops.to_json())
```
[03:32](https://www.youtube.com/watch?v=aIZFELGtfWY&t=212s)​ Google Video
```
GoogleVideo = GVideo('Pegipegi', 1, 2)
print(GoogleVideo.to_json())
```
[04:26](https://www.youtube.com/watch?v=aIZFELGtfWY&t=266s)​ Google Scholar
```python
GScholar.URL += "ANOTHER_PARAMETER_URL_FOR_PASS_BOT"
GoogleScholar = GScholar('Penggunaan Naive Bayes Classifier', 1, 2)
print(GoogleScholar.to_json())
```

### Another useful method
`.to_pd()` = Convert the results to a Pandas DataFrame.
`.to_json()` = Convert the results to a Json.
`.get_all()` = Convert the results to a dictionary.