跳到正文
FunCoding

maimai-hub

Star
640
分类
其他
许可证
MIT
最近提交
2026年11月29日

maimai-hub/SKILL.md

在 GitHub 上查看

maimai-hub

Authentication Process

Before each use, retrieve the latest cookies with browser_use get_cookies. This must be done on the desktop version of the page because the mobile version does not include csrftoken:

1. browser_use set_user_agent → desktop_safari
2. browser_use navigate → https://maimai.cn/web/search_center
3. browser_use get_cookies → save to env file
4. Confirm that the env file contains COOKIE_CSRFTOKEN (otherwise, retry steps 2-3)

Example ENV file path: /var/minis/offloads/env_cookies_maimai_cn_XXXXXXXX.sh

Colleague Circle Fallback Plan (When the API Is Unavailable)

When the script returns an empty array or HTTP 404, automatically switch to reading the page content directly in the browser:

Colleague Circle page URL format:
https://maimai.cn/company/gossip_discuss?webcid=<WEBCID>

Note: The old paths /web/gossip_discuss and /community/gossip_discuss now both return 404.
You must use /company/gossip_discuss.

Fallback steps:

1. browser_use navigate → https://maimai.cn/company/gossip_discuss?webcid=<WEBCID>
2. Scroll multiple times to load more content (scroll down × 4~6, 800px each time)
3. Extract post text with browser_use get_readable or execute_js:
   document.querySelectorAll('[class*="content"],[class*="text"],[class*="body"]')
   Filter criteria: length 15~800, exclude noise such as "Maimai", "illegal", and "Colleague Circle popularity"
4. Deduplicate the extracted results, then compile and summarize them

Script Invocation

Script: /var/minis/skills/maimai-hub/scripts/maimai.py

# Colleague Circle posts (must be an employee of that company)
python3 /var/minis/skills/maimai-hub/scripts/maimai.py gossip_circle \
  --webcid 9AG14xzt --count 20 --env <ENV_FILE>

# Look up a Colleague Circle by company name (automatically finds webcid)
python3 /var/minis/skills/maimai-hub/scripts/maimai.py gossip_circle \
  --company Ant Group --count 20 --env <ENV_FILE>

# Site-wide Career Insights feed
python3 /var/minis/skills/maimai-hub/scripts/maimai.py gossip_feed \
  --tab hot --count 20 --env <ENV_FILE>
  # tab: hot(Trending) | new(Latest) | follow(Following) | recommend(Recommended)

# Colleague Circle popularity ranking (gets popular company webcids)
python3 /var/minis/skills/maimai-hub/scripts/maimai.py circle_rank \
  --env <ENV_FILE>

# Look up webcid by company name
python3 /var/minis/skills/maimai-hub/scripts/maimai.py search_company \
  --name ByteDance --env <ENV_FILE>

How to Obtain the webcid

Priority:

  1. URL provided by the user → extract with regex: webcid=([A-Za-z0-9]+)
  2. Current user's company → visit https://maimai.cn/web/search_center, then execute JS:
    window.share_data.data.mycard.web_cid  // returns the webcid directly; .company is the full company name
    
  3. Company name matching → built-in script cache + dynamic ranking lookup (circle_rank command)

Colleague Circle page URL (for browser fallback): https://maimai.cn/company/gossip_discuss?webcid=<WEBCID>

Built-in webcid cache (major tech companies):

Companywebcid
ByteDancejYZTTwkX
Pinduoduo1cDwhLvjW
Tencent167PEUToR
AlibabaEnT6guJz
Ant Group9AG14xzt
BaidumWqfo5EX
Meituan5DDx3ANi
XiaomiKvzN4IGA
JD.comSJdjsQ5S
KuaishouRO3MvtaT

Permissions

  • Colleague Circle: Access is limited to employees of that company. error_code: 21003 indicates no permission.
  • Site-wide Career Insights: Accessible to all logged-in users.
  • Ranking: Accessible to all logged-in users.

Output Format

The script returns JSON. Fields for each post: id, time, text, likes, cmts, spreads, ip_loc

When summarizing, sort by engagement (likes + cmts), identify the main topics, and do not list the original text item by item.

Frequently Asked Questions

  • Returns an empty array: No permission for the Colleague Circle (not an employee of that company). Switch to site-wide Career Insights.
  • Missing csrftoken: Make sure to access the site with a desktop UA before calling get_cookies.
  • Cannot find the webcid for a company name: Ask the user to provide the Colleague Circle URL directly (https://maimai.cn/company/gossip_discuss?webcid=xxx).
  • API returns empty / 404: Automatically switch to the browser fallback plan. See the "Colleague Circle Fallback Plan (When the API Is Unavailable)" section.

相似的 Skill

claude-handoff

MAmattpocock/skills337k近 7 天新增 4,978 个 star

software-factory

MAmattpocock/skills337k近 7 天新增 4,978 个 star

agent-payment-x402

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

agent-self-evaluation

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

bengali-nlp

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

ponytail-gain

DIDietrichGebert/ponytail203k近 7 天新增 4,904 个 star