gpt4 book ai didi

javascript - 如何获取 Twitter #hashtag id

转载 作者:行者123 更新时间:2023-12-02 16:29:48 25 4
gpt4 key购买 nike

我怎样才能得到#<name> id,例如像这个号码 345170787868762112 。我从以下示例中得到它:http://codepen.io/jasonmayes/pen/Ioype .

也许不是#hashtag id,但任何人都可以解释一下,它是什么以及我如何找到它的任何类型 #hashtag

尝试用谷歌搜索,但没有找到任何相关结果。

最佳答案

您是否阅读了链接到的代码中的注释?

/**
* ### HOW TO CREATE A VALID ID TO USE: ###
* Go to www.twitter.com and sign in as normal, go to your settings page.
* Go to "Widgets" on the left hand side.
* Create a new widget for what you need eg "user time line" or "search" etc.
* Feel free to check "exclude replies" if you don't want replies in results.
* Now go back to settings page, and then go back to widgets page and
* you should see the widget you just created. Click edit.
* Look at the URL in your web browser, you will see a long number like this:
* 345735908357048478
* Use this as your ID below instead!
*/

这些不是主题标签的 ID - 它们是您之前配置用于搜索主题标签的小部件 ID。

关于javascript - 如何获取 Twitter #hashtag id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28411369/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com