Unable to receive scrape result after hosting on heroku - heroku

I hosted a telegram bot on heroku using webhook. It servers to scrape lyrics off a website. When I run the bot on my local machine, it is able to do so, however, when its hosted on Heroku, it keeps returning me element not found (I use beautiful soup). I have used different user-agents but to no avail. Any idea why?

Related

How to use IP issued urls on an another pc or a server

I created a video downloading bot using python and hosted it on heroku. The bot is working perfectly. But the problem is I have some video urls which were issued only to my ip address in computor.
When I try to download the video with the bot running locally it works fine. But when downloading with the bot hosted in heroku it gets 403 forbidden error.
So is there a way to use these ip issued urls on an another server or a pc. I tried using same proxy server in heroku and in my pc. But they are blocked to the country also.
I can't move on to paid servers because the bot is used only by me and it is waste of money to use a paid service for an small task.I know there is some way to do this. I saw some guy is doing this with Napsterntv.
So can anyone suggest a way to do this. Any help would be appreciated.

How can I access the Parse Cloud Code hosted in AWS?

I want my app in iOS to verify user phone numbers, but that would require that I write code in a place called Cloud Code in Parse. The Parse Server is hosted in Amazon Web Services but I cannot find exactly where the Cloud Code is. How could I access it?
I already tried looking it up and the closest thing I got is to use Webhooks in my Parse Dashboard- with no real success.

Are heroku apps anonymous?

If I have made 2 different heroku apps, can someone who randomly sees one also find the other and know that I made it? (They are not linking to each other of course)
Thanks!
If you look at Heroku Website you will notice that it is a deployment service for developers equipped with all required tools. On Heroku there is no way to find who is registered with Heroku or list of registered apps on Heroku just like Github.
So Github has a different service model, and we can easily search any repo, any author (if public). On Heroku there is no area or option to search like that.
Except that, if you are using Heroku for free and their free domain, then the prefix in start of your free domain name will let others know that you are using Heroku platform (with free package or have not configured real domain yet).
Twilio a famous SMS API service provider, has their chat service hosted on Heroku, they didn't configured the domain, hence I noticed Herokuapp in start of their chat window URL, which let me know that they are using Heroku.

How to run my Slack chatbot on Heroku?

I recently built a Slack chatbot using this tutorial: https://youtu.be/jTaoU6u1Fcg
It worked great.
Now, I'm trying to run my bot on Heroku instead (so it works 24/7) but can't find anywhere online on how to do it.
The specific questions I need answered are:
What PORT do I add to my .env file now? (since I want it on a remote server public, I guess the answer isn't 3000 anymore)
Where (on Heroku) do I find the redirect URL for Oauth & Permissions?
Where (on Heroku) do I find the request URL for Event Subscriptions?
Will I still need to use ngrok or npm install? If I want the app to run 24/7, is Heroku enough?
Thanks for any help.
I just recently deployed a chatbot on heroku. The answers to your questions will be:
1. I kept the port same at 3000 and that will work on heroku as well.
2. I don't think you need to do anything on the heroku.
3. I don't think you need to do anything on the heroku.
4. ngrok wont work now but instead of ngrok url you will have add the url given by heroku (e.g. http://yourappname.herokuapp.com/) on your slack interactive elements and slash commands if you use them.
I hope this should fix your problem. One more thing there will be a proc file in heroku where you will have to give the entry path of your app.

Deploy Twilio to existing Heroku app

I find plenty of information on deploying Twilio to a new Heroku app, thereby creating it. I'm a little stuck on the process of deploying it to an app that I already have. My app has a lot of data in the database there and I don't want to have to recreate it all. Additionally I would like my app to serve PHP pages as well. Do I need 3 Heroku apps now then? Doesn't make sense!
Twilio developer evangelist here.
You don't need to build a new application to use Twilio on Heroku. If you already have your existing application all you need to do is add the relevant endpoints for receiving SMS messages and voice calls from Twilio and deploy to your existing Heroku deployment. It is recommended that you load your Twilio Account SID and Auth Token into the Heroku config so that you can use them there too.
Is there anything specific you need to know about this? What is the application you have already built?

Resources