MCPcopy Create free account

hub / github.com/NanmiCoder/MediaCrawler / functions

Functions1,133 in github.com/NanmiCoder/MediaCrawler

Methodflush
(self)
store/xhs/_store_impl.py:118
Functionformat_proxy_info
format proxy info for playwright and httpx
tools/crawler_util.py:189
Methodget
Get the value of a key from the cache. This is an abstract method. Subclasses must implement this method. :param key: The key
cache/abs_cache.py:34
Methodget
(self, query_name: str)
media_platform/kuaishou/graphql.py:41
Functionget_a_bogus_from_playwright
Get a_bogus parameter through playwright playwright version is deprecated Returns:
media_platform/douyin/help.py:85
Methodget_all_articles_by_creator
Get all articles by creator Args: url_token: Creator url token (in-memory only, not persisted) crawl_interval
media_platform/zhihu/client.py:492
Methodget_all_comments
(self)
store/xhs/_store_impl.py:239
Methodget_all_content
(self)
store/xhs/_store_impl.py:233
Methodget_all_notes_by_creator_user_name
Get all creator posts by creator username Args: user_name: Creator username crawl_interval: Crawl delay inter
media_platform/tieba/client.py:756
Methodget_all_videos_by_creator
Get all videos by creator Args: url_token: Creator url token (in-memory only, not persisted) crawl_interval:
media_platform/zhihu/client.py:526
Methodget_aweme_media
(self, url: str)
media_platform/douyin/client.py:347
Methodget_browser_info
Get browser info (name and version)
tools/browser_launcher.py:214
Functionget_config_options
Get all configuration options
api/main.py:167
Methodget_cookies
Get current cookies
tools/cdp_browser.py:424
Functionget_crawler_status
Get crawler status
api/routers/crawler.py:54
Methodget_creator_container_info
Get user's container ID, container information represents the real API request path fid_container_id: Container ID for user's Wei
media_platform/weibo/client.py:308
Methodget_creator_videos
get all videos for a creator :param creator_id: Creator ID :param pn: Page number :param ps: Number of videos per page
media_platform/bilibili/client.py:392
Functionget_current_date
Get current date: '2023-12-02' :return:
tools/time_util.py:52
Functionget_current_time
Get current time: '2023-12-02 13:01:23' :return:
tools/time_util.py:38
Functionget_current_time_hour
Get current time with hour: '2023-12-02-13' :return:
tools/time_util.py:45
Functionget_data_stats
Get data statistics
api/routers/data.py:191
Functionget_date_str_from_unix_time
Unix integer timestamp ==> date string :param unixtime: :return:
tools/time_util.py:71
Methodget_fans
get fans for creator id :param creator_info: :param semaphore: :return:
media_platform/bilibili/core.py:659
Functionget_file_content
Get file content or preview
api/routers/data.py:99
Methodget_followings
get followings for creator id :param creator_info: :param semaphore: :return:
media_platform/bilibili/core.py:682
Functionget_img_urls_by_trace_id
(trace_id: str, format_type: str = "png")
media_platform/xhs/help.py:295
Functionget_logs
Get recent logs
api/routers/crawler.py:60
Functionget_mobile_user_agent
()
tools/crawler_util.py:131
Methodget_note_short_url
Get note short URL Args: note_id: Note ID Returns:
media_platform/xhs/client.py:657
Functionget_platforms
Get list of supported platforms
api/main.py:151
Methodget_proxy
(self, num: int)
proxy/proxy_ip_pool.py:156
Methodget_proxy
KuaiDaili implementation Args: num: Returns:
proxy/providers/kuaidl_proxy.py:96
Methodget_proxy
:param num: :return:
proxy/providers/wandou_http_proxy.py:52
Methodget_proxy
:param num: :return:
proxy/providers/jishu_http_proxy.py:57
Functionget_sign
* 获取zhihu sign value 对python暴漏的接口 * @param url 请求的路由参数 * @param cookies 请求的cookies,需要包含dc0这个key * @returns {*}
libs/zhihu.js:155
Functionget_time_str_from_unix_time
Unix integer timestamp ==> datetime string :param unixtime: :return:
tools/time_util.py:60
Functionget_trace_id
Generate trace id for link tracing
media_platform/xhs/xhs_sign.py:150
Functionget_tracks
(distance: int, level: str = "easy")
tools/slider_util.py:178
Functionget_unix_time_from_time_str
Time string ==> Unix integer timestamp, precise to seconds :param time_str: :return:
tools/time_util.py:82
Functionget_unix_timestamp
()
tools/time_util.py:97
FunctionhandleConfirm
()
webui/src/components/license/LicenseDisclaimer.tsx:24
FunctionhandleDecline
()
webui/src/components/license/LicenseDisclaimer.tsx:29
FunctionhandleDownload
()
webui/src/components/data/FileCard.tsx:60
FunctionhandleDownload
()
webui/src/components/data/preview/DataPreviewDialog.tsx:34
FunctionhandleEnvCheckComplete
()
webui/src/App.tsx:18
FunctionhandleKeyDown
(e: KeyboardEvent<HTMLInputElement>)
webui/src/components/config/CrawlerConfigPanel.tsx:82
FunctionhandleLicenseAccept
()
webui/src/App.tsx:22
FunctionhandleRetry
()
webui/src/components/env/EnvironmentCheck.tsx:63
FunctionhandleShowDisclaimer
()
webui/src/App.tsx:27
FunctionhandleSkip
()
webui/src/components/env/EnvironmentCheck.tsx:58
FunctionhandleStart
()
webui/src/components/config/CrawlerConfigPanel.tsx:149
FunctionhandleStop
()
webui/src/components/config/CrawlerConfigPanel.tsx:153
Functionhealth_check
()
api/main.py:84
Functioninit_db
(db_type: str = None)
database/db.py:46
Methodkeys
Get all keys matching the pattern :param pattern: Matching pattern :return:
cache/abs_cache.py:56
Methodlaunch_browser_with_cdp
Launch browser using CDP mode (optional implementation) :param playwright: playwright instance :param playwright_proxy: playw
base/base_crawler.py:54
Functionlist_data_files
Get data file list
api/routers/data.py:62
Methodlogin_by_cookies
(self)
base/base_crawler.py:82
Methodlogin_by_mobile
(self)
base/base_crawler.py:78
Methodlogin_by_qrcode
(self)
base/base_crawler.py:74
Methodlogs
(self)
api/services/crawler_manager.py:48
Functionmain
()
main.py:100
Functionmain
MediaCrawler 命令行入口
cmd_arg/arg.py:160
Functionmatch_interact_info_count
(count_str: str)
tools/crawler_util.py:177
Functionmrc
CRC32 variant, used for x9 field in x-s-common
media_platform/xhs/xhs_sign.py:86
Functionnew_jisu_http_proxy
Construct JiSu HTTP instance Returns:
proxy/providers/jishu_http_proxy.py:99
Functionnot_found
()
recv_sms.py:83
Methodpost
(self, uri: str, data: dict)
media_platform/bilibili/client.py:129
Methodpost
POST request with header signing Args: uri: Request route data: Request body parameters Returns:
media_platform/tieba/client.py:307
Methodpost
(self, uri: str, data: dict, headers: Optional[Dict] = None)
media_platform/douyin/client.py:145
Functionproject_root_path
Return project root path
tests/conftest.py:33
Functionreceive_sms_notification
Receive SMS notification and send it to Redis. Args: sms: { "platform": "xhs", "from_numb
recv_sms.py:56
Methodrequest
(self, method, url, **kwargs)
base/base_crawler.py:122
Functionreset
()
libs/douyin.js:49
Functionrfc2822_to_timestamp
(rfc2822_time)
tools/time_util.py:113
Functionsample_xhs_comment
Sample Xiaohongshu comment data for testing
tests/conftest.py:66
Functionsample_xhs_creator
Sample Xiaohongshu creator data for testing
tests/conftest.py:85
Functionsample_xhs_note
Sample Xiaohongshu note data for testing
tests/conftest.py:39
Functionsave_creator
Save Zhihu creator information Args: creator: Returns:
store/zhihu/__init__.py:120
Functionsave_creator
Save creator information to local 教学版:为防骚扰不再采集/持久化创作者个人信息(昵称/性别/头像/简介/IP/粉丝数等), 此入口保留为空操作以兼容调用方。user_id 仅在调用方局部用于抓取该创作者的微博。 Args:
store/weibo/__init__.py:177
Functionsave_creator
Save creator information to local Args: user_info: Returns:
store/tieba/__init__.py:115
Functionsave_creator
(user_id: str, creator: Dict)
store/kuaishou/__init__.py:112
Functionsave_creator
Save Xiaohongshu creator Args: user_id: creator: Returns:
store/xhs/__init__.py:181
Functionsave_creator
(user_id: str, creator: Dict)
store/douyin/__init__.py:219
Methodsave_notes_with_full_text
(note_list: List[Dict])
media_platform/weibo/core.py:320
Functionserve_frontend
Return frontend page
api/main.py:70
Methodset
Set the value of a key in the cache. This is an abstract method. Subclasses must implement this method. :param key: The key
cache/abs_cache.py:44
MethodsetUp
(self)
test/test_redis_cache.py:35
MethodsetUp
(self)
test/test_expiring_local_cache.py:35
MethodsetUp
(self)
test/test_mongodb_integration.py:46
MethodsetUpClass
(cls)
test/test_mongodb_integration.py:36
Methodsetup_and_teardown
Setup and teardown for each test
tests/test_excel_store.py:203
Functionshow_qrcode
parse base64 encode qrcode image and show it
tools/crawler_util.py:88
Functionsign
takes in a URI (uniform resource identifier), an optional data dictionary, and an optional ctime parameter. It returns a dictionary containing tw
media_platform/xhs/help.py:31
Functionsign_datail
(params, userAgent)
libs/douyin.js:429
Functionsign_reply
(params, userAgent)
libs/douyin.js:433
Methodsignal_handler
Signal handler
tools/cdp_browser.py:67
Methodstart
Start the crawler Returns:
media_platform/zhihu/core.py:67
Methodstart
(self)
media_platform/bilibili/core.py:70
Methodstart
(self)
media_platform/weibo/core.py:69
← previousnext →801–900 of 1,133, ranked by callers