Polymarket Scraper - Windows Guide ← Back to OS Selection

Polymarket Scraper

Windows Guide

Welcome Windows User!

This guide will walk you through installing and running the Polymarket Scraper on Windows. Follow each step carefully, and you'll be searching markets in no time.

Time needed: About 15-20 minutes

What You'll Need

  • A Windows computer (Windows 10 or 11)
  • Internet connection
  • Administrator access (to install software)
  • The polymarket1.py file (the code you were given)

Step 1: Install Python

Python is the programming language that will run the script. Think of it as the engine.

Download Python

  1. Open your web browser (Edge, Chrome, Firefox, etc.)
  2. Go to python.org/downloads
  3. You'll see a big yellow button that says "Download Python 3.x.x" - click it
  4. The file will download (usually to your Downloads folder)
  5. The filename will be something like python-3.12.0-amd64.exe

Install Python

  1. Find the downloaded file in your Downloads folder
  2. Double-click the file to run it
  3. VERY IMPORTANT: At the bottom of the installer window, you'll see a checkbox that says "Add Python to PATH" - YOU MUST CHECK THIS BOX!
  4. After checking the box, click "Install Now"
  5. Windows may ask "Do you want to allow this app to make changes?" - click Yes
  6. Wait for the installation (takes 2-3 minutes)
  7. When you see "Setup was successful", click Close
Critical Step: The "Add Python to PATH" checkbox is ESSENTIAL. Without it, Windows won't know where to find Python. If you forgot to check it, uninstall Python (from Settings → Apps) and reinstall it, making sure to check the box!

Verify Python is Installed

Let's make sure Python installed correctly:

  1. Press Win + R on your keyboard
  2. A small "Run" window will appear
  3. Type cmd and press Enter
  4. A black window (Command Prompt) will open
  5. Type this command and press Enter:
python --version

You should see something like:

Python 3.12.0
Success! If you see a Python version number, you're ready for Step 2!
Troubleshooting: If you see "'python' is not recognized as an internal or external command", it means the PATH wasn't set up correctly. You'll need to reinstall Python and make sure to check the "Add Python to PATH" box.

Step 2: Install Required Library

The script needs a library called requests to download data from the internet. This is like adding a plugin to your browser.

Open Command Prompt

  1. Press Win + R
  2. Type cmd and press Enter

Install the requests library

In the Command Prompt window, type this command and press Enter:

pip install requests

You'll see text scrolling by as it downloads and installs. This takes about 10-20 seconds.

Success! When you see "Successfully installed requests" you're done with this step!
Tip: You can leave the Command Prompt window open - we'll use it again in Step 4!

Step 3: Save the Script File

Now you need to save the Python code as a file on your computer.

Create a Folder

  1. Right-click on your Desktop
  2. Select New → Folder
  3. Name the folder PolymarketScraper (no spaces!)
  4. Press Enter

Save the Python Code

  1. Open Notepad (search for "Notepad" in the Start menu)
  2. Copy ALL of the polymarket1.py code (from the very first line to the very last line)
  3. Paste it into Notepad
  4. Click File → Save As
  5. Navigate to the Desktop, then open the PolymarketScraper folder you just created
  6. In the "File name" box, type: polymarket1.py
  7. IMPORTANT: Change the "Save as type" dropdown from "Text Documents (*.txt)" to "All Files (*.*)"
  8. Click Save
Important: Make sure the file is named exactly polymarket1.py (not polymarket1.py.txt). The "All Files" dropdown is crucial for this!
Tip: After saving, look at the file in your PolymarketScraper folder. If you see a Python icon (a blue and yellow snake), you did it right! If you see a Notepad icon, the file is still .txt and you need to fix it.

Step 4: Run the Script

Now for the exciting part - running the script!

Open Command Prompt

  1. Press Win + R
  2. Type cmd and press Enter

Navigate to Your Folder

Type these commands (press Enter after each one):

cd Desktop
cd PolymarketScraper
What does this do? cd means "change directory" - it's like opening a folder. We're telling the computer to go to Desktop, then into the PolymarketScraper folder.

Run the Script

Type this command and press Enter:

python polymarket1.py

Or if that doesn't work, try:

python3 polymarket1.py

The script will start and ask you three questions:

Question 1: Enter categories

Type the categories you want to search, separated by commas:

politics,crypto,tech

Available categories: politics, crypto, geopolitics, tech, world, trump, elections

Press Enter after typing.

Question 2: How many total markets to fetch?

Type a number (how many markets you want to see):

150

Press Enter.

Question 3: Minimum volume filter?

Type 0 to see all markets, or a number like 10000 to only see markets with at least $10,000 in volume:

0

Press Enter.

First Time? Try these settings: politics,crypto, 50 markets, 0 minimum volume. This will be quick and show you how it works!

The script will now fetch data from Polymarket. You'll see messages like "Fetching markets from Polymarket..." This takes 10-30 seconds.

Success! When you see "Successfully scraped X markets" and file creation messages, it's done!

Step 5: View Your Results

The script creates two files in your PolymarketScraper folder:

  • polymarket_feed.html - Your beautiful results page!
  • polymarket_data.json - Raw data (for advanced users)

Open the Results

  1. Go to your Desktop
  2. Open the PolymarketScraper folder
  3. Find the file named polymarket_feed.html
  4. Double-click it
  5. It will open in your default web browser (Edge, Chrome, Firefox, etc.)
Congratulations! You should now see a beautifully formatted page with all the Polymarket markets you requested, organized by category!

What You'll See

  • Markets organized by category (Politics, Crypto, Tech, etc.)
  • For each market:
    • The question/prediction
    • Trading volume (how much money is in the market)
    • Liquidity
    • Current odds (YES/NO percentages)
    • End date
    • A link to view it on Polymarket.com
Tip: You can bookmark this HTML file, email it to friends, or even put it on a USB drive. It works completely offline!

Running It Again

Want to update your data or search for different categories? Easy!

  1. Press Win + R
  2. Type cmd and press Enter
  3. Navigate to your folder:
    cd Desktop\PolymarketScraper
  4. Run the script:
    python polymarket1.py
  5. Answer the questions with your new preferences
  6. Go back to your browser and refresh the page (press F5) to see new results!
Note: Each time you run the script, it overwrites the old files with fresh data.

Troubleshooting Common Issues

Problem: 'python' is not recognized

Solution: Python wasn't added to PATH during installation. You need to:

  1. Go to Settings → Apps → Apps & features
  2. Find Python in the list and click Uninstall
  3. Reinstall Python, making SURE to check "Add Python to PATH" this time

Problem: No module named 'requests'

Solution: The requests library isn't installed. Open Command Prompt and run:

pip install requests

Problem: File saves as polymarket1.py.txt

Solution: Windows is hiding file extensions. When saving in Notepad:

  1. Click File → Save As
  2. Change "Save as type" to "All Files (*.*)"
  3. Type the filename as polymarket1.py

Problem: Error fetching markets

Solution: This usually means:

  • Your internet connection is down - check your WiFi
  • Polymarket's API might be temporarily down - try again in a few minutes
  • Your firewall might be blocking Python - allow it through Windows Defender

Problem: No markets found

Solution:

  • Your volume filter might be too high - try setting it to 0
  • Try different categories (politics and crypto usually have the most markets)
  • Increase the number of markets to fetch (try 200)

Understanding Your Results

What Do the Numbers Mean?

Volume: The total amount of money traded on this market. Higher volume = more people betting = usually more accurate odds. A market with $500,000 volume is more reliable than one with $1,000.

Liquidity: How easy it is to buy or sell positions in this market. Higher liquidity means you can trade without affecting the price much.

YES/NO Odds: The current probability of each outcome according to the market. For example:

  • "YES 65% / NO 35%" means traders think there's a 65% chance it will happen
  • "YES 20% / NO 80%" means traders think there's only a 20% chance it will happen

End Date: When the market closes and the outcome is determined. After this date, the market resolves to either YES or NO.

Pro Tip: Markets with higher volume (over $50,000) tend to have more accurate odds because more informed traders are participating. Look for the volume numbers when evaluating predictions!

Pro Tips for Windows Users

  • Create a Shortcut: Right-click the PolymarketScraper folder and select "Create shortcut" - drag it to your desktop for quick access
  • Pin Command Prompt: Right-click Command Prompt in your Start menu and select "Pin to Start" for easy access
  • Save Multiple Versions: Before running the script again, rename your old HTML file (like polymarket_feed_oct21.html) to keep historical data
  • Set up Daily Updates: Run the script each morning with your coffee to see how markets evolved overnight
  • Share Results: Email the HTML file to friends - it works on any computer with a web browser!

Next Steps

Now that you've successfully run the script, you can:

  • Experiment with different categories (try all 7 categories!)
  • Adjust volume filters to focus on high-activity markets
  • Track how specific markets change over time
  • Share your HTML reports with friends interested in prediction markets
  • Visit Polymarket.com to learn more and potentially trade
Congratulations! You've successfully installed Python, run a Python script, and generated custom market reports. You're officially a Polymarket data analyst!