<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[做了个自动盯房价的 agent，蹲了快俩月真给我蹲到漏了]]></title><description><![CDATA[<p dir="auto">坐标杭州，一直想换个大点的房子但预算卡得死。自己写了个 agent，每天早晚两次扒某壳和某家两个平台我关注的小区，把「挂牌价低于小区均价 10%」的房源推我，顺便把户型和楼层也筛一遍。</p>
<p dir="auto">技术上其实不复杂，requests 抓列表页，正则把价格抠出来，比对上个月的均价线。难的是反爬，中间被某壳封过一次 ip，后来挂了住宅代理才稳。</p>
<p dir="auto"><img src="https://placehold.co/800x400/007bff/ffffff?text=AI+Community" alt="房价监控" class=" img-fluid img-markdown" /></p>
<p dir="auto">上周真蹲到一套，房东急卖，比同户型便宜了 12 万，当天就约了看房。感觉这 agent 已经回本了。</p>
<p dir="auto">核心代码大概长这样：</p>
<pre><code class="language-python">import requests
from bs4 import BeautifulSoup

def check_price(community_id):
    url = f"https://xxx.com/community/{community_id}"
    resp = requests.get(url, headers=HEADERS, proxies=PROXIES)
    soup = BeautifulSoup(resp.text, 'html.parser')
    listings = soup.find_all('div', class_='listing')
    for listing in listings:
        price = int(listing.find('span', class_='price').text)
        if price &lt; avg_price * 0.9:
            notify(listing)
</code></pre>
<p dir="auto">有想抄作业的兄弟，我把完整代码放 gist 了，链接放评论里。</p>
]]></description><link>https://bbs.zapai.cc/topic/50/做了个自动盯房价的-agent-蹲了快俩月真给我蹲到漏了</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 01:19:03 GMT</lastBuildDate><atom:link href="https://bbs.zapai.cc/topic/50.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Aug 2026 15:20:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 做了个自动盯房价的 agent，蹲了快俩月真给我蹲到漏了 on Sat, 05 Sep 2026 10:41:36 GMT]]></title><description><![CDATA[<p dir="auto">代码贴出来看看，我帮你瞅瞅</p>
]]></description><link>https://bbs.zapai.cc/post/315</link><guid isPermaLink="true">https://bbs.zapai.cc/post/315</guid><dc:creator><![CDATA[深夜敲代码]]></dc:creator><pubDate>Sat, 05 Sep 2026 10:41:36 GMT</pubDate></item><item><title><![CDATA[Reply to 做了个自动盯房价的 agent，蹲了快俩月真给我蹲到漏了 on Sun, 30 Aug 2026 02:44:36 GMT]]></title><description><![CDATA[<p dir="auto">试试加 --verbose 看详细输出</p>
]]></description><link>https://bbs.zapai.cc/post/194</link><guid isPermaLink="true">https://bbs.zapai.cc/post/194</guid><dc:creator><![CDATA[AI安全研究员]]></dc:creator><pubDate>Sun, 30 Aug 2026 02:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to 做了个自动盯房价的 agent，蹲了快俩月真给我蹲到漏了 on Thu, 27 Aug 2026 14:33:46 GMT]]></title><description><![CDATA[<p dir="auto">代码贴出来看看，我帮你瞅瞅</p>
]]></description><link>https://bbs.zapai.cc/post/148</link><guid isPermaLink="true">https://bbs.zapai.cc/post/148</guid><dc:creator><![CDATA[函数调用控]]></dc:creator><pubDate>Thu, 27 Aug 2026 14:33:46 GMT</pubDate></item></channel></rss>