https://github.com/karust/openserp Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. {{ message }} karust / openserp Public * Notifications * Fork 2 * Star 46 Get Google, Yandex, Baidu search engine results via API or CLI for free License MIT license 46 stars 2 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights karust/openserp This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 1 tag Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/k] Use Git or checkout with SVN using the web URL. [gh repo clone karust] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @karust karust Default ratelimeter ... dd5e0a2 Jun 28, 2023 Default ratelimeter dd5e0a2 Git stats * 12 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time baidu Default ratelimeter June 28, 2023 22:20 cmd Default ratelimeter June 28, 2023 22:20 core Default ratelimeter June 28, 2023 22:20 google Default ratelimeter June 28, 2023 22:20 yandex Default ratelimeter June 28, 2023 22:20 .gitignore Radme and default configs fix June 25, 2023 20:39 Dockerfile Init June 23, 2023 04:08 LICENSE Initial commit June 23, 2023 03:03 README.md Default ratelimeter June 28, 2023 22:20 config.yaml Radme and default configs fix June 25, 2023 20:39 docker-compose.yaml Radme and default configs fix June 25, 2023 20:39 go.mod Default ratelimeter June 28, 2023 22:20 go.sum Default ratelimeter June 28, 2023 22:20 logo.png Readme and default config change June 24, 2023 22:25 main.go Fix package paths June 23, 2023 04:16 View code [ ] OpenSERP (Search Engine Results Page) Docker usage Example request Request parameters Example response CLI [?][?] License Bugs + Questions README.md OpenSERP (Search Engine Results Page) OpenSERP Go Report Card Go Reference release API access for search engines results if available isn't free. Using OpenSERP, you can get search results from Google, Yandex, Baidu via API or CLI! See Docker and CLI usage examples below. Docker usage * Run API server: # Use prebuilt image docker run -p 127.0.0.1:7000:7000 -it karust/openserp serve -a 0.0.0.0 -p 7000 # Or build one and run using docker-compose.yaml docker-compose up --build Example request Get 20 Google results for hello world, only in English: GET http:/127.0.0.1:7000/google/search?lang=EN&limit=20&text=hello world You can replace google to yandex or baidu in query to change search engine. Request parameters Param Description text Text to search lang Search pages in selected language (EN, DE, RU...) date Date in YYYYMMDD..YYYYMMDD format (e.g. 20181010..20231010) file File extension to search (e.g. PDF, DOC) site Search within a specific website limit Limit the number of results Example response [ { "rank": 1, "url": "https://en.wikipedia.org/wiki/%22Hello,_World!%22_program", "title": "\"Hello, World!\" program", "description": "A \"Hello, World!\" program is generally a computer program that ignores any input, and outputs or displays a message similar to \"Hello, World!\"." }, ] CLI [?][?] * Use -h flag to see commands. * You can use serve command to serve API: openserp serve * Or print results in CLI using search command: openserp search google "how to get banned from google fast" # Change `google` to `yandex` or `baidu` As a result you should get JSON output containting search results: [ { "rank": 1, "url": "https://www.cyberoptik.net/blog/6-sure-fire-ways-to-get-banned-from-google/", "title": "11 Sure-Fire Ways to Get Banned From Google | CyberOptik", "description": "How To Get Banned From Google * 1. Cloaking: The Art of Deception * 2. Plagiarism: Because Originality is Overrated * 3. Keyword Stuffing: More is Always Better * 4 ..." }, ] License This project is licensed under the MIT License - see the LICENSE file for details Bugs + Questions If you have some issues/bugs/questions, feel free to open an issue. About Get Google, Yandex, Baidu search engine results via API or CLI for free Topics search search-engine google yandex baidu serp serpapi Resources Readme License MIT license Stars 46 stars Watchers 4 watching Forks 2 forks Report repository Releases 1 v0.1.1 Latest Jun 24, 2023 Packages 0 No packages published Languages * Go 99.2% * Dockerfile 0.8% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.