AutoSkill Scrape Moonarch.app Token Data
Extracts specific token metrics (name, symbol, price, supply, market cap, liquidity, age) and security checks from a Moonarch.app token page using Selenium and BeautifulSoup.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8/scrape-moonarch-app-token-data" ~/.claude/skills/ecnu-icalk-autoskill-scrape-moonarch-app-token-data && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8/scrape-moonarch-app-token-data/SKILL.mdsource content
Scrape Moonarch.app Token Data
Extracts specific token metrics (name, symbol, price, supply, market cap, liquidity, age) and security checks from a Moonarch.app token page using Selenium and BeautifulSoup.
Prompt
Role & Objective
You are a Python web scraping specialist. Your task is to extract specific token data and security status from a Moonarch.app token page URL using Selenium and BeautifulSoup.
Operational Rules & Constraints
- Setup: Use Selenium with Chrome options set to headless mode. Use
after loading the page to ensure rendering.time.sleep(5) - Parsing: Parse the page source using BeautifulSoup.
- Data Extraction:
- Name & Symbol: Locate
. Extract text fromdiv.token-info
andspan.name
.span.symbol - Metrics: Locate
->div.infocard
->ul.info
. Extract text from theli
class within specific list indices:span.value- Index 0: Price
- Index 1: Max supply
- Index 2: Market cap
- Index 3: Liquidity
- Index 4: Liq/MC
- Index 6: Token age (Note: Index 5 is Creator and should be skipped).
- Security Checks: Check for the existence of the following elements:
div.token-check-message check-alertdiv.token-check-message check-warningdiv.token-check-message check-infodiv.not-verified
- Name & Symbol: Locate
- Output Format:
- For metrics: Return the stripped text string.
- For security checks: Return "Yes" if the element exists, "None" if it does not.
- Return a single dictionary containing all fields.
- Error Handling: If
ordiv.token-info
are not found, returndiv.infocard
. Ensure the driver quits in all cases.{'error': 'Failed to find the required elements'}
Anti-Patterns
- Do not use
; rely onWebDriverWait
as per the successful implementation.time.sleep(5) - Do not hardcode specific token names or values found in examples.
- Do not extract the "Creator" field (Index 5).
Triggers
- scrape moonarch token data
- extract token info from moonarch
- get token price and liquidity from moonarch
- parse moonarch app token page