展示HN:我创建了一个异步的Telegram机器人,用于捕捉80%以上的零售价格错误。

1作者: MauricioML3 个月前原帖
嗨,HN, 我做一些零售套利,但因为错过了大量90%折扣的漏洞而感到非常沮丧。等到有人在Slickdeals或DealNews上发布交易时,库存已经被机器人清空了。 我决定自己解决这个问题,创建了Sniper Syndicate。这是一个自定义的Python Telegram机器人,实时抓取RSS源和Reddit的信息。与其仅仅转发链接,我编写了一些正则表达式逻辑,实际从原始HTML中提取并计算折扣,过滤掉任何低于20%的真实折扣,以及抽奖或“重新上架”的垃圾信息。 这个工具在我自己的采购中运作得非常顺利(当找到匹配时会立即通知我),所以我最近通过Whop将访问权限打包发布:<a href="https://whop.com/snyper-sindicate/sniper-syndicate-membership/" rel="nofollow">https://whop.com/snyper-sindicate/sniper-syndicate-membership...</a> 我仍在改进机器人在大规模使用时如何处理速率限制,使用aiohttp,因此我很想听听你们对抓取逻辑的看法,或者有什么想法可以让价格过滤器更好!
查看原文
Hi HN,<p>I do some retail arbitrage and got incredibly frustrated missing out on massive 90% off glitches. By the time someone posts a deal on Slickdeals or DealNews, bots have already cleared the stock.<p>I decided to fix my own problem and built Sniper Syndicate. It’s a custom Python Telegram bot that scrapes RSS feeds and Reddit in real-time. Instead of just forwarding links, I wrote some Regex logic to actually extract and calculate the discounts from raw HTML, dropping anything under a 20% true discount and filtering out sweepstakes or &quot;back in stock&quot; spam.<p>It works beautifully for my own sourcing (it pings me the second a match is found), so I recently packaged the access via Whop: <a href="https:&#x2F;&#x2F;whop.com&#x2F;snyper-sindicate&#x2F;sniper-syndicate-membership&#x2F;" rel="nofollow">https:&#x2F;&#x2F;whop.com&#x2F;snyper-sindicate&#x2F;sniper-syndicate-membershi...</a><p>I&#x27;m still improving how the bot handles rate limits at scale with aiohttp, so I&#x27;d love to hear your thoughts on the scraping logic or any ideas to make the price filters even better!