Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanmiCoder/MediaCrawler
/ functions
Functions
1,133 in github.com/NanmiCoder/MediaCrawler
⨍
Functions
1,133
◇
Types & classes
236
↳
Endpoints
25
↓ 2 callers
Method
launch_browser
launch browser and create browser context :param chromium: chromium browser :param playwright_proxy: playwright proxy
media_platform/bilibili/core.py:488
↓ 2 callers
Method
launch_browser
Launch browser and create browser context
media_platform/weibo/core.py:361
↓ 2 callers
Method
launch_browser
Launch browser and create browser Args: chromium: playwright_proxy: user_agent: headl
media_platform/tieba/core.py:597
↓ 2 callers
Method
launch_browser
Launch browser and create browser context
media_platform/kuaishou/core.py:329
↓ 2 callers
Method
launch_browser
Launch browser and create browser context
media_platform/xhs/core.py:394
↓ 2 callers
Method
launch_browser
Launch browser and create browser context
media_platform/douyin/core.py:331
↓ 2 callers
Method
load_proxies
Load IP proxies Returns:
proxy/proxy_ip_pool.py:63
↓ 2 callers
Function
make_mock_comment
贴近真实微博评论结构的 mock comment_item(含嵌套 user 信息)。
tests/test_weibo_no_user_info.py:69
↓ 2 callers
Function
make_mock_note
贴近真实 m.weibo.cn 接口结构的 mock note_item(含嵌套 user 信息)。
tests/test_weibo_no_user_info.py:45
↓ 2 callers
Function
make_mock_video
贴近真实快手结构的 video_item:author 在顶层,photo 含内容字段。 author.headerUrl 与各禁用字段一样不应进入存储 dict。
tests/test_kuaishou_no_user_info.py:43
↓ 2 callers
Function
parse_creator_info_from_url
Parse creator ID from Kuaishou creator homepage URL Supports the following formats: 1. Creator homepage: "https://www.kuaishou.com/profil
media_platform/kuaishou/help.py:53
↓ 2 callers
Function
parse_creator_info_from_url
Parse creator information from Xiaohongshu creator homepage URL Supports the following formats: 1. Full URL: "https://www.xiaohongshu.com
media_platform/xhs/help.py:319
↓ 2 callers
Function
parse_creator_info_from_url
Parse creator ID (sec_user_id) from Douyin creator homepage URL Supports the following formats: 1. Creator homepage: https://www.douyin.c
media_platform/douyin/help.py:141
↓ 2 callers
Function
parse_video_info_from_url
Parse video ID from Kuaishou video URL Supports the following formats: 1. Full video URL: "https://www.kuaishou.com/short-video/3x3zxz4mj
media_platform/kuaishou/help.py:27
↓ 2 callers
Method
pre_request_data
Send request to sign request parameters Need to get wbi_img_urls parameter from localStorage, value as follows: https://i0.hd
media_platform/bilibili/client.py:85
↓ 2 callers
Function
print_diff
Print difference report
test/test_db_sync.py:101
↓ 2 callers
Function
rc4_encrypt
(plaintext, key)
libs/douyin.js:3
↓ 2 callers
Method
request_rest_v2
Make REST API V2 request (for comment endpoints) :param uri: API endpoint path :param data: request body :return: res
media_platform/kuaishou/client.py:92
↓ 2 callers
Function
resolveTheme
(theme: Theme)
webui/src/store/themeStore.ts:36
↓ 2 callers
Function
result_encrypt
(long_str, num = null)
libs/douyin.js:179
↓ 2 callers
Method
search
search weibo note with keywords :return:
media_platform/weibo/core.py:137
↓ 2 callers
Method
search_by_keywords_in_time_range
Search bilibili video with keywords in a given time range. :param daily_limit: if True, strictly limit the number of notes per day an
media_platform/bilibili/core.py:240
↓ 2 callers
Method
search_video_by_keyword
KuaiShou web search api :param keyword: Search keyword :param page: Page number for pagination :param page_size: Numb
media_platform/bilibili/client.py:157
↓ 2 callers
Function
sign
(url_search_params, user_agent, arguments)
libs/douyin.js:414
↓ 2 callers
Method
start
start crawler
base/base_crawler.py:29
↓ 2 callers
Method
stop
Stop crawler process
api/services/crawler_manager.py:153
↓ 2 callers
Function
sync_database
Synchronize ORM model to database
test/test_db_sync.py:133
↓ 2 callers
Function
update_bilibili_video
(video_item: Dict)
store/bilibili/__init__.py:55
↓ 2 callers
Method
update_cookies
Update cookies method provided by API client, typically called after successful login Args: browser_context: Browser cont
media_platform/zhihu/client.py:164
↓ 2 callers
Method
update_cookies
Update cookies from browser context :param browser_context: Browser context :param urls: Optional list of URLs to filter cook
media_platform/weibo/client.py:134
↓ 2 callers
Method
update_cookies
(self, browser_context: BrowserContext, urls: Optional[list[str]] = None)
media_platform/kuaishou/client.py:137
↓ 2 callers
Function
update_kuaishou_video
(video_item: Dict)
store/kuaishou/__init__.py:55
↓ 1 callers
Function
G
(e)
libs/zhihu.js:30
↓ 1 callers
Method
_apply_header_style
Apply formatting to header row Args: sheet: Worksheet object row_num: Row number for headers (default: 1)
store/excel_store_base.py:147
↓ 1 callers
Method
_build_query_string
Build URL query string with encoding matching browser behavior (commas not encoded)
media_platform/xhs/client.py:157
↓ 1 callers
Function
_build_sign_string
Build content string to be signed Args: uri: API path data: Request data method: Request method (GET or POST) Return
media_platform/xhs/playwright_sign.py:72
↓ 1 callers
Function
_cancel_remaining_tasks
(timeout_seconds: float = 2.0)
tools/app_runner.py:46
↓ 1 callers
Function
_cleanup_with_timeout
()
tools/app_runner.py:40
↓ 1 callers
Method
_clear
Clean up cache based on expiration time :return:
cache/local_cache.py:112
↓ 1 callers
Method
_connect_existing_browser
Connect to an existing browser that already has remote debugging enabled. User needs to enable remote debugging via chrome://inspect/
tools/cdp_browser.py:140
↓ 1 callers
Method
_connet_redis
Connect to redis, return redis client, configure redis connection information as needed :return:
cache/redis_cache.py:44
↓ 1 callers
Method
_decode_js_string
(value: str)
media_platform/tieba/help.py:280
↓ 1 callers
Function
_encode_chunk
Encode data chunk
media_platform/xhs/xhs_sign.py:104
↓ 1 callers
Method
_ensure_tieba_origin
(self)
media_platform/tieba/client.py:76
↓ 1 callers
Method
_extract_comment
extract zhihu comment Args: page_content: comment with content object comment: zhihu comment Returns
media_platform/zhihu/help.py:230
↓ 1 callers
Function
_extract_comment_image_list
Extract comment image list Args: comment_item (Dict): Douyin comment Returns: List[str]: Comment image list
store/douyin/__init__.py:78
↓ 1 callers
Function
_extract_content_cover_url
Extract video cover URL Args: aweme_detail (Dict): Douyin content details Returns: str: Video cover URL
store/douyin/__init__.py:102
↓ 1 callers
Function
_extract_music_download_url
Extract music download URL Args: aweme_detail (Dict): Douyin video Returns: str: Music download URL
store/douyin/__init__.py:142
↓ 1 callers
Function
_extract_note_image_list
Extract note image list Args: aweme_detail (Dict): Douyin content details Returns: List[str]: Note image list
store/douyin/__init__.py:54
↓ 1 callers
Function
_extract_video_download_url
Extract video download URL Args: aweme_detail (Dict): Douyin video Returns: str: Video download URL
store/douyin/__init__.py:122
↓ 1 callers
Function
_flush_excel_if_needed
()
main.py:73
↓ 1 callers
Function
_generate_wordcloud_if_needed
()
main.py:86
↓ 1 callers
Method
_get_browser_path
Get browser path
tools/cdp_browser.py:197
↓ 1 callers
Method
_inject_anti_detection_scripts
Inject anti-detection JavaScript scripts For Baidu Tieba's special detection mechanism
media_platform/tieba/core.py:491
↓ 1 callers
Function
_inject_init_db_default
Ensure bare --init_db defaults to sqlite for backward compatibility.
cmd_arg/arg.py:121
↓ 1 callers
Method
_is_valid_proxy
Validate if proxy IP is valid :param proxy: :return:
proxy/proxy_ip_pool.py:71
↓ 1 callers
Method
_launch_browser
Launch browser process
tools/cdp_browser.py:250
↓ 1 callers
Method
_navigate_to_tieba_via_baidu
Simulate real user access path: 1. First visit Baidu homepage (https://www.baidu.com/) 2. Wait for page to load 3. Cl
media_platform/tieba/core.py:402
↓ 1 callers
Function
_normalize_argv
(argv: Optional[Sequence[str]])
cmd_arg/arg.py:115
↓ 1 callers
Function
_normalize_tieba_creator_url
Accept a Tieba creator homepage URL or a portrait id.
cmd_arg/arg.py:146
↓ 1 callers
Function
_normalize_tieba_note_id
Accept a raw Tieba thread id or a /p/<id> URL.
cmd_arg/arg.py:139
↓ 1 callers
Function
_patch_xhshow_a3_hash
修复 xhshow 库 build_payload_array 中 a3_hash 计算的 bug。 xhshow 原实现对所有请求使用 MD5(extract_api_path(content_string)) 计算 a3_hash, 其中 extract_api_pat
media_platform/xhs/playwright_sign.py:34
↓ 1 callers
Method
_pre_headers
Sign request headers Args: url: Request URL with query parameters Returns:
media_platform/zhihu/client.py:68
↓ 1 callers
Method
_read_output
Asynchronously read process output
api/services/crawler_manager.py:241
↓ 1 callers
Method
_register_cleanup_handlers
Register cleanup handlers to ensure browser process cleanup on program exit
tools/cdp_browser.py:47
↓ 1 callers
Method
_reload_proxies
Reload proxy pool :return:
proxy/proxy_ip_pool.py:146
↓ 1 callers
Function
_right_shift_unsigned
Python implementation of JavaScript unsigned right shift (>>>)
media_platform/xhs/xhs_sign.py:79
↓ 1 callers
Function
_runner
()
tools/app_runner.py:61
↓ 1 callers
Function
_scenario
()
tests/test_douyin_no_user_info.py:304
↓ 1 callers
Method
_schedule_clear
Start scheduled cleanup task :return:
cache/local_cache.py:98
↓ 1 callers
Method
_sign_pc_params
(params: Dict[str, Any])
media_platform/tieba/client.py:67
↓ 1 callers
Method
_start_clear_cron
Start scheduled cleanup task :return:
cache/local_cache.py:121
↓ 1 callers
Method
_text_to_int
(text: str)
media_platform/tieba/help.py:68
↓ 1 callers
Function
_triplet_to_base64
Convert 24-bit integer to 4 Base64 characters
media_platform/xhs/xhs_sign.py:94
↓ 1 callers
Method
add_comment
(self, session: AsyncSession, comment_item: Dict)
store/xhs/_store_impl.py:194
↓ 1 callers
Method
add_content
(self, session: AsyncSession, content_item: Dict)
store/xhs/_store_impl.py:136
↓ 1 callers
Method
add_stealth_script
Add anti-detection script
tools/cdp_browser.py:400
↓ 1 callers
Function
array_16_48_offset
(e, t)
libs/zhihu.js:62
↓ 1 callers
Function
b64Encode
(e)
media_platform/xhs/help.py:215
↓ 1 callers
Function
base36encode
Converts an integer to a base36 string.
media_platform/xhs/help.py:252
↓ 1 callers
Method
begin
Start login zhihu
media_platform/zhihu/login.py:65
↓ 1 callers
Method
begin
Start login bilibili
media_platform/bilibili/login.py:54
↓ 1 callers
Method
begin
Start login weibo
media_platform/weibo/login.py:55
↓ 1 callers
Method
begin
Start login baidutieba
media_platform/tieba/login.py:66
↓ 1 callers
Method
begin
Start login xiaohongshu
media_platform/kuaishou/login.py:49
↓ 1 callers
Method
begin
Start login xiaohongshu
media_platform/xhs/login.py:87
↓ 1 callers
Method
begin
Start login douyin website The verification accuracy of the slider verification is not very good... If there are no special r
media_platform/douyin/login.py:53
↓ 1 callers
Method
broadcast
Broadcast message to all connections
api/routers/websocket.py:42
↓ 1 callers
Method
check_login_state
Check if the current login status is successful and return True otherwise return False Returns:
media_platform/zhihu/login.py:52
↓ 1 callers
Method
check_login_state
Check if the current login status is successful and return True otherwise return False retry decorator will retry 20 times if
media_platform/bilibili/login.py:68
↓ 1 callers
Method
check_login_state
Check if the current login status is successful and return True otherwise return False retry decorator will retry 20 times if
media_platform/weibo/login.py:70
↓ 1 callers
Method
check_login_state
Poll to check if login status is successful, return True if successful, otherwise return False Returns:
media_platform/tieba/login.py:51
↓ 1 callers
Method
check_login_state
Check if the current login status is successful and return True otherwise return False retry decorator will retry 20 times if
media_platform/kuaishou/login.py:62
↓ 1 callers
Method
check_login_state
Check if the current login status is successful and return True otherwise return False
media_platform/douyin/login.py:92
↓ 1 callers
Method
clear_white
Clear whitespace from image, mainly clearing slider whitespace
tools/slider_util.py:84
↓ 1 callers
Method
close
Close browser context Returns:
media_platform/tieba/core.py:674
↓ 1 callers
Method
comment_is_exist
(self, session: AsyncSession, comment_id: str)
store/xhs/_store_impl.py:224
↓ 1 callers
Function
connect
()
webui/src/hooks/useWebSocket.ts:22
↓ 1 callers
Method
content_is_exist
(self, session: AsyncSession, note_id: str)
store/xhs/_store_impl.py:177
↓ 1 callers
Function
convert_cookies
(cookies: Optional[List[Cookie]])
tools/crawler_util.py:138
← previous
next →
201–300 of 1,133, ranked by callers