Add Weibo API scheme for JSON profile extraction#214
Merged
Conversation
Closed
…patterns Agent-Logs-Url: https://github.com/soxoj/socid-extractor/sessions/f88ae10b-6709-43ab-94a2-0d3acc2e3482 Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Weibo support with user details
Add Weibo API scheme for JSON profile extraction
Mar 29, 2026
Owner
|
@copilot make e2e-test |
Agent-Logs-Url: https://github.com/soxoj/socid-extractor/sessions/1d9a66ee-8bad-42a8-b228-2412464f7a0d Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com>
Contributor
Author
Added two e2e tests in
Both are marked Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Owner
|
@copilot resolve the conflicts |
Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com>
Contributor
Author
Resolved the merge conflict in |
Owner
|
@copilot mark e2e test_d3 as github_failed |
Agent-Logs-Url: https://github.com/soxoj/socid-extractor/sessions/d7180735-49cc-4aa4-ab8e-85ab95b36a08 Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com>
Contributor
Author
Done in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Existing Weibo scheme relied on HTML parsing with
$CONFIGflags, requiring cookies and failing on redirects. Weibo exposes a JSON API at/ajax/profile/infothat returns structured user data without authentication.Changes
extract_json: Trueand twourl_mutations:/clairekuo→/ajax/profile/info?custom=clairekuo/u/6215884155→/ajax/profile/info?uid=6215884155weibo_id,username,fullname,bio,image,gender,location,verified,verified_reason,follower_count,following_count,statuses_counttests/test_e2e.py:test_weibo_api(by username) andtest_weibo_api_by_id(by user ID), marked@pytest.mark.github_failedsince Weibo may block CI serversExample API response shape
{"ok":1,"data":{"user":{"idstr":"1733299783","screen_name":"郭靜Claire","domain":"clairekuo","gender":"f","location":"台湾 台北市","followers_count":3126727,...}}}📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.