Skip to main content

Scrape list information from Bing

Updated over a month ago

You are browsing a tutorial guide for Octoparse's latest version. If you are running an older version of Octoparse, we strongly recommend you upgrade because it is faster, easier, and more robust! Download and upgrade here if you haven't already done so!

💡 Try our pre-set Bing Search template for faster setup!

Bing is one of the most popular search engines around the world. In this tutorial, we are going to show you how to scrape result information from Bing.com.

Target URL Example:

What We'll Extract:

✔ Search result titles
✔ Destination URLs
✔ Page descriptions
✔ Timestamp of extraction

The main steps are shown in the menu on the right and you can download the demo task:


1. Set Up the Task

  • Enter your Bing search URL

  • Click "Start" to load the page


2. Configure Pagination

  • Scroll down and click the ">" (next page) button

  • In Tips Panel, select "Loop Click"

  • Set AJAX Timeout to 7 seconds


3. Extract Data Fields

For each search result (excluding ads):

  1. Click the 2nd non-ad result title

  2. In Tips Panel:

    • Select "All Similar Elements"

    • Choose "Text" for titles

    • Choose "Link" for URLs

  3. For descriptions: Click result text → "Text"

  4. (Optional) Add current timestamp via "+" icon

    5.png

The workflow should look like this:


4. Refine with XPath (Exclude Ads)

  1. Edit the Loop Item's XPath to:
    //li[@class='b_algo']

    7.png
  2. Update field XPaths:

    • Title: //h2

    • URL: //h2/a

    • Description: //p

      XPath.jpg


5. Run & Export Data

  1. Click "Run" → Choose "Standard Mode" for local execution

  2. Export results as:

    • Excel

    • CSV

    • HTML

    • JSON

  3. Sample data

Did this answer your question?