首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Facebook marketplace跟踪网页更改

Facebook marketplace跟踪网页更改
EN

Stack Overflow用户
提问于 2020-05-24 23:03:13
回答 1查看 343关注 0票数 0

我想找到一种方法来跟踪fb市场搜索。我尝试过在其他网站上成功地使用distill.io,但在facebook上失败了。

我提出了这个问题来提炼支持,他们告诉我,facebook市场定期更新,自动生成的选择器不起作用,必须手动编码。

我已经尝试过这一点,但不精通css,无法看到我如何去手动做这件事。

是否有其他应用程序或方法可以让我监控市场?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2020-07-10 22:30:27

如果你更改了最高和最低价格,Facebook只会刷新市场页面,并根据最近发布的内容进行过滤。这段代码打开随机的facebook链接,其中包含我想要的价格范围类别的各种价格。

这只适用于当你登录到market place时,在你的url上添加你的号码。例如,使用:

'https://www.facebook.com/marketplace/xxxxxxxxxxxxxxx/vehicles?maxPrice=10000&sortBy=creation_time_descend&exact=false

然后将url中的最大和最小价格更改为您所需范围附近的随机数。您需要每隔几分钟单击此按钮手动刷新一次。

我现在的问题是通过distill.io接收警报,使用一种生成随机链接的方法。有人知道我如何根据最近发布的项目的文本更改来设置提醒吗?

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<body>

<h1>Facebook Refresh</h1>

<p>Click the button to trigger random price change to allow facebook to refresh newest links</p>

<button onclick="randomSite()">Click me</button>

<p id="demo"></p>

<script>
var sites = [
        'https://www.facebook.com/marketplace/vehicles?minPrice=100&maxPrice=9000&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=200&maxPrice=8500&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=200&maxPrice=8501&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=240&maxPrice=8300&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=203&maxPrice=9211&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=204&maxPrice=8600&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=1065&maxPrice=9000&sortBy=creation_time_descend&exact=false',
        'https://www.facebook.com/marketplace/vehicles?minPrice=260&maxPrice=8500&sortBy=creation_time_descend&exact=false',
    
    ];

    function randomSite() {
        var i = parseInt(Math.random() * sites.length);
        location.href = sites[i];
    }
</script>

</body>
</html>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61987856

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档