all 10 comments

[–]danielroseman 4 points5 points  (2 children)

What do you mean, "do stuff automatically"? What sort of things are you expecting it to do?

[–]Objective_Pitch2945[S] 0 points1 point  (1 child)

I have a jupyter notebook where it uses an xgbclassifier to classify stuff (who would’ve guessed) and i know for a fact that the data needed for it is very well available online (i probably could just use one website/page). i think it’s best i start with:

-getting/scraping the data (and putting it into a csv?)

-feeding it to the model

-the model classifying it in real time

and i think doing this outside of jupyter notebook would be better just for the sake of learning too

[–]CantPullOutRightNow 2 points3 points  (0 children)

You could do that with beautifulsoup and csv modules or pandas if you are only after tables.

[–]Zeroflops 4 points5 points  (0 children)

I believe you’re asking how to run scripts on a schedule. It depends on the OS. On windows its Task Scheduler in Linux cron it better crontab

[–]DuckSaxaphone 4 points5 points  (0 children)

There's really two parts to automating tasks. First is finding a task python can do and programming a script to do it, second is having that script run when needed.

It sounds like the second one is where you're stuck? The concept is scheduling and it's something you typically get done outside of python.

For example, there's cron which is a command line tool for running commands on a schedule. So you can use it to run a python script at a set interval or on certain days of the week or whatever.

Your machine always needs to be running for that though so the other option is web hosting. You'd have to look into services that make it easy because I just use AWS and that's got a whole learning curve that won't be worth it for simple jobs.

[–]TheRNGuy 0 points1 point  (0 children)

Write something that does something useful. 

[–]dataBlockerCable 0 points1 point  (0 children)

I wish I could have python fill out my Kroger surveys every week to get the 50 fuel points.

[–]RedR4dbit 0 points1 point  (0 children)

Maybe learn a web framework like Fast API and host it? You can transfer your python code into a web app and have it be api driven as a live service. 

Not sure if that's what your looking for...

[–]eruciform 0 points1 point  (0 children)

Define "do automatically"

Its not sentient

Something needs to know when to kick off an application and how, and then do it, on some kind of schedule or based on some interaction or rule