M
M
mercmarcus2020-11-16 13:19:30
Python
mercmarcus, 2020-11-16 13:19:30

How to connect a remote cloud service to Heroku (for python script)?

I have a parser script. The parser with an interval, for example, an hour, parses the site, collects links and uploads them to a .txt file. The next time it checks the site links with the .txt file and if there are new links, it fills them in .txt

postsFile = open('posts.txt','r+')
posts = postsFile.read().splitlines() 
postsFile.writelines(url+'\n')
postsFile.close()


Heroku doesn't overwrite anything and says it needs an external cloud service. For my script (posts.txt), which service is convenient and easier to learn? Since I'm still new to these matters.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lesha, 2020-11-16
@hydrugz

Heroku Postgres FTP.
In your case, working with the database will not be as difficult as you think. It is better to spend a little time and study once than to deal with crutches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question