apify_animation_01_02
Actor picture

Stack Overflow Search Scraper

drobnikj/stackoverflow-search-to-slack

This act search on stackoverflow site for definied query and send them to your slack channel. Example of input: { "searchStrings": ["created:1d apify","created:1d crawler javascript"], "slackBotToken": "dhU6k07zhfFhBk0Kh" } Easy slack bot set up: - Go to https://api.slack.com/slack-apps and click on Create Slack app - Set up App name and slack channel as workspace - Go to your created app then go to Bot Users and set up name for your slack bot - Go to OAuth & Permissions and copy your OAuth Access Token and put in into input of this act (slackBotToken)

To run the actor, you'll need an Apify account. Simply create a new task for the actor by clicking the button below, modify the actor input configuration, click Run and get your results.

API

To run the actor from your code, send a HTTP POST request to the following API endpoint:

https://api.apify.com/v2/acts/drobnikj~stackoverflow-search-to-slack/runs?token=<YOUR_API_TOKEN>

The POST payload including its Content-Type header is passed as INPUT to the actor (usually application/json). The actor is started with the default options; you can override them using various URL query parameters.

Example
curl https://api.apify.com/v2/acts/drobnikj~stackoverflow-search-to-slack/runs?token=<YOUR_API_TOKEN> \
-d '{
  "searchStrings": ["created:1d apify","created:1d crawler javascript"],
  "slackBotToken": "dhU6k07zhfFhBk0Kh"
}' \
-H 'Content-Type: application/json' \
-X POST

To use the API, you'll need to replace <YOUR_API_TOKEN> with the API token of your Apify account (view here).

For more information, view the list of actor's API endpoints or the full API reference.

  • Modified
  • Last run
  • Used440 times