twitter bot on heroku error "No web processes running" method=GET path="/favicon.ico"
<p>I made a twitter bot in <code>python 3.5</code> using <code>tweepy</code> which updates status about the New followers everyday. The code runs smoothly on IDLE. I tried to deploy the bot on heroku but it keeps throwing error in the logs :</p>

<pre><code>at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" dyno= connect= service= status=503 bytes=
</code></pre>

<p>After going through similar questions, I tried the commands like :</p>

<pre><code>heroku ps:scale web=1
</code></pre>

<p>but to no avail.
Here is my python program named <code>bot.py</code></p>

<pre><code>import tweepy
import sys
import time
import os
non_bmp_map = dict.fromkeys(range(0x10000, sys.maxunicode + 1), 0xfffd)
CONSUMER_KEY = ''
CONSUMER_SECRET = '' 
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = ''

auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)

api = tweepy.API(auth)
count=1
Past_Followers = 0
Current_Followers = 0
while(count&gt;0):
   variable1 = api.get_user('USERNAME')
   Past_Followers = variable1.followers_count
   api.update_status(status='Follower count is '+str(Past_Followers))
   time.sleep(86400)
   variable2 = api.get_user('USERNAME')
   Current_Followers = variable2.followers_count
   api.update_status(status='Total Followers '+str(Current_Followers))
   api.update_status(status='New Followers Today = '+str(Current_Followers - Past_Followers))
   count=count+1
   print(count)
</code></pre>

<p>requirements.txt : <code>tweepy==3.5.0</code> ; runtime.txt : <code>python-3.5.2</code> and Procfile : <code>worker: python bot.py
</code>
<strong>Edit</strong> : Worked using <code>heroku ps:scale worker=1</code></p>

<p>The problem is you are trying to run your web process, when the bot is a worker. You want to <code>ps:scale worker=1</code> instead of <code>ps:scale web=1</code>. Web is for processes with <code>web:</code> in your Procfile and they have to be web apps.</p>

python python-3.x heroku twitter tweepy