O'Reilly logo

ArcGIS Blueprints by Eric Pimpler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scheduling the script

In this section, you'll learn how to schedule the script using the Windows Task Scheduler. Scheduling the script will require the creation of a batch file. Batch files can contain scripts and operating system commands. The batch file will then be added to the Windows Task Scheduler to run at a specific time interval. To do this follow these steps:

  1. Open Notepad.
  2. Add the following lines of text to the file. These lines of code will switch the directory where the Python script is stored and execute the script, passing in a name for the output feature class and the number of hours to be monitored for tweets. You can change this value if you'd like:
    cd c:\ArcGIS_Blueprint_Python\ch9
    python tweepy_stream.py Tweets 48
  3. Save the file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required