api.search参数的推文时间和推文数量

时间:2016-04-23 14:56:14

标签: python twitter tweepy

我尝试使用twitter api和tweepy模块使用某些主题标签收集推文。我知道如何使用以下代码使用给定的主题标签获取15条最新的推文:

{
  "currency": {
    "code": "USD",
    "name": "US Dollar",
    "prefix": "$",
    "postfix": null
  },
  "products": [
    {
      "product_id": xxxxx,
      "model_code": "xxxxx",
      "quantity": 1,
      "price": "45.60",
      "total": "45.60",
      "retail_price": "63.84"
    }
  ],
  "shipping": [
    {
      "name": "UPS",
      "price": 43.83,
      "delivery": "3 -10 Days delivery"
    },
    {
      "name": "DHL",
      "price": 20.29,
      "delivery": "2-6 days"
    },
    {
      "name": "FedEx",
      "price": 31.46,
      "delivery": "2-6 days"
    },
    {
      "name": "EMS",
      "price": 25.74,
      "delivery": "7 - 25 Days delivery"
    },
    {
      "name": "Air Mail",
      "price": 11.85,
      "delivery": "10 - 25 Days delivery"
    }
  ]
}

但是我想知道我用什么参数来指定要返回的推文的数量。还有一个参数我可以用来指定时间吗?就像我想收集一周前推文的推文一样?

任何帮助将不胜感激!

谢谢, 本

0 个答案:

没有答案