Skip to content

automation9417/OpenSeaScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenSeaScraper

A Python OpenSea picture scraper powered by Clicknium.

Environment

  • Windows 7 SP1+
  • Chrome
  • Clicknium Chrome extension

If you want to code based on this project please install Clicknium VS Code Extension

Packge to exe file

In VS Code, press Ctrl+Shift+P to show the Command Palette, input or select Clicknium: Package Project, then select the path to save the executable file.

How to

Let's scrape Okay Bear as an example.

Picture info

  1. Open Okay Bear's page with Chrome.
  2. Press F12 to open the DevTools, click the mouse icon, and then click the NFT picture.
    In the following pic, we can see:
  • Image alt can be used as picture name
  • Picture src and srcset with different sizes. Image description

Capture Pictures

Capturing similar elements is quite easy for this scenario:

  1. Click the capture button in VS code extension to start the recorder.
    Image description
  2. Click Similar elements . Image description
  3. Ctrl + Click on the first pic and then capture the second. Image description Image description

You can also use this way to capture the price.

Handle scroll to load pictures

Clicknium provides API to control the mouse and keyboard. In this Scenario, Page-down is the easiest way. More about HotKey

clicknium.send_hotkey("{PGDN}")

Download picture

use requests(pip install requests)

More sample: 10 lines of Python code to upload a video to TikTok, Instagram, Twitter

A Spotify robot

About

A Python OpenSea picture scraper using Clicknium

Topics

Resources

License

Stars

Watchers

Forks

Languages