Publish daily AI news notes to Xiaohongshu unattended
Agent, → → → → → → , , 。 Task: Agent, → → → → → → , , 。 " ", API , Agent —— 20 , 。 :specs/<date>.json( )、out/<date>/( HTML、PNG、 )。 、 、 specs/*.json , spec。 : CDP API, MCP server, 。 : : --no-proxy-server: , ERR_PROXY_CONNECTION_FAILED。 headed ( headless):headless , / —— " ,Agent " 。 (20 docs/failure-modes.md) : closed shadow DOM ——querySelectorAll('*') shadow , Accessibility 。 : document.elementFromPoint ,Input.dispatchMouseEvent ;Runtime.callFunctionOn(this.click()) 。 (tiptap) :press_key("Enter")、Input.dispatchKeyEvent、execCommand('insertParagraph') ,414 <p>; editor.commands.setContent() 。 DPR ( 1.5 1.125): 、DOM/box model CSS , ( input.value )。 CDP , DPR。 —— profile , edge-profile/ 。 (a[href*="topic"] 0), 、 。 。 _cdp.py 100 CDP (websockets + urllib), Playwright / Selenium, Agent —— 。Agent ( 、 、 、 ) + 。 :cookie Edge 。 , 。 ( 6), 。 : .creator-tab / .note-card / permission_msg , 。 : " ", " "。 , " API Agent "。 。; tools: custom-built or unnamed agent. Human role: The original post does not say how a person stayed involved.; limitations: Reliability depends on stable page selectors and manual login maintenance when cookies expire. Known issues include non-clickable topic tags due to editor key event failures and strict dependency on a specific Edge profile directory. The system is designed for personal automation research and must not be used for bulk spam or violating platform terms..
Tools
custom-built or unnamed agent
Published on Agent Work Atlas:
Overview
Agent, → → → → → → , , 。
Workflow
Agent, → → → → → → , , 。 " ", API , Agent —— 20 , 。 :specs/<date>.json( )、out/<date>/( HTML、PNG、 )。 、 、 specs/*.json , spec。 : CDP API, MCP server, 。 : : --no-proxy-server: , ERR_PROXY_CONNECTION_FAILED。 headed ( headless):headless , / —— " ,Agent " 。 (20 docs/failure-modes.md) : closed shadow DOM ——querySelectorAll('*') shadow , Accessibility 。 : document.elementFromPoint ,Input.dispatchMouseEvent ;Runtime.callFunctionOn(this.click()) 。 (tiptap) :press_key("Enter")、Input.dispatchKeyEvent、execCommand('insertParagraph') ,414 <p>; editor.commands.setContent() 。 DPR ( 1.5 1.125): 、DOM/box model CSS , ( input.value )。 CDP , DPR。 —— profile , edge-profile/ 。 (a[href*="topic"] 0), 、 。 。 _cdp.py 100 CDP (websockets + urllib), Playwright / Selenium, Agent —— 。Agent ( 、 、 、 ) + 。 :cookie Edge 。 , 。 ( 6), 。 : .creator-tab / .note-card / permission_msg , 。 : " ", " "。 , " API Agent "。 。
Reported result
Over a 50-day window, the system executed 39 tasks, resulting in 35 successful online publications and 3 failures (2 timeouts, 1 debug issue). Each note took 3–7 minutes to publish, with an average of 4.91 source URLs per note. No duplicate posts occurred due to idempotency checks, but 15 days had no runs due to gateway downtime.
Human role
The original post does not say how a person stayed involved.
Limitations
Reliability depends on stable page selectors and manual login maintenance when cookies expire. Known issues include non-clickable topic tags due to editor key event failures and strict dependency on a specific Edge profile directory. The system is designed for personal automation research and must not be used for bulk spam or violating platform terms.
Try it
Act as an automation engineer setting up a daily Xiaohongshu publisher. 1. Initialize a dedicated Edge profile with --remote-debugging-port=9222 and --no-proxy-server. 2. Create a spec JSON file [replaceable: specs/2023-10-27.json] with 5 verified news items and source URLs. 3. Write a Python script using websockets to connect to CDP. 4. Implement a 'dry run' mode that renders HTML/PNG and fills the editor but stops before clicking publish. 5. Require human confirmation of the preview before enabling the final publish step. 6. Handle errors by saving drafts if publishing fails. Do not automate login; assume the user has manually logged in. Verify success by checking for 'published=true' in the URL or absence of permission messages.
Source reports are not independently verified. Publication date is the catalog publication date, not the original article date.