Skip to content

omkarcloud/baidu-scraper

Repository files navigation

Baidu Scraper Featured Image

✨ Baidu Scraper 🚀

💦 Baidu Scraper helps you scrape search results from Baidu. 💦

(Programming Language - Python 3)

baidu-scraper forks Repo stars baidu-scraper License issues

View

Open in Gitpod


Disclaimer for Baidu Scraper Project

By using Baidu Scraper, you agree to comply with all applicable local and international laws related to data scraping, copyright, and privacy. The developers of Baidu Scraper will not be held liable for any misuse of this software. It is the user's sole responsibility to ensure adherence to all relevant laws regarding data scraping, copyright, and privacy, and to use Baidu Scraper in an ethical and legal manner, in line with both local and international regulations.

We take concerns related to the Baidu Scraper Project very seriously. If you have any inquiries or issues, please contact Chetan Jain at [email protected]. We will take prompt and necessary action in response to your emails.

👉 Explore Our Other Awesome Products

  • Botasaurus: The All-in-One Web Scraping Framework with Anti-Detection, Parallelization, Asynchronous, and Caching Superpowers.

Baidu Scraper helps you scrape search results from Baidu.

🚀 Getting Started

1️⃣ Clone the Magic 🧙‍♀:

git clone https://github.com/omkarcloud/baidu-scraper
cd baidu-scraper

2️⃣ Install Dependencies 📦:

python -m pip install -r requirements.txt

3️⃣ Let the Scraping Begin 😎:

python main.py

Find your data in the output directory.

Baidu Scraper CSV Result

Note: If you don't have Python installed. Follow this Simple FAQ here and you will have your Baidu data in next 5 Minutes

🤔 FAQs

❓ How to Scrape Baidu?

  1. Open the main.py file.
  2. Update the queries list with the queries you are interested in. For example:
queries = [
  "Mango",
  "Watermelon",
]

Baidu.search(queries, max=10)
  1. Run it.
python main.py

Then find your data in the output directory.

❓ How to Scrape More Baidu Search Results Using Your Baidu API?

To scrape additional data, follow these steps to use our Baidu SERP API. You can make 50 Search requests for free:

  1. Sign up on RapidAPI by visiting this link.

Sign Up on RapidAPI

  1. Then, subscribe to our Free Plan by visiting this link.

Subscribe to Free Plan

  1. Now, copy the API key.

Copy the API Key

  1. Use it in the scraper as follows:
Baidu.search("Orange", max=10, key="YOUR_API_KEY")
  1. Run the script, and you'll find your data in the output folder.
python main.py

The first 50 requests are free. After that, you can upgrade to the Pro Plan, which will get you 1000 search requests for just $9.

❓ How did you build it?

We used Botasaurus, It's an All-in-One Web Scraping Framework with Anti-Detection, Parallelization, Asynchronous, and Caching Superpowers.

Botasaurus helped us cut down the development time by 50% and helped us focus only on the core extraction logic of the scraper.

If you are a Web Scraper, you should learn about Botasaurus here, because Botasaurus will save you countless hours in your life as a Web Scraper.

botasaurus

❓ Need More Help or Have Additional Questions?

For further help, contact us on WhatsApp. We'll be happy to help you out.

Contact Us on WhatsApp about Baidu Scraper

Love It? Star It! ⭐

Made with ❤️ using Botasaurus Web Scraping Framework

About

Baidu Scraper helps you scrape search results from Baidu.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published