scraperwiki / twitter-follows-tool

Get users who follow or are following a particular user; tool now defunct, though the code is here for reference.
https://blog.scraperwiki.com/2014/08/the-story-of-getting-twitter-data-and-its-missing-middle/
Other
5 stars 7 forks source link

Change "rm -fr scraperwiki.sqlite" to use DROP TABLES #37

Closed frabcus closed 11 years ago

zarino commented 11 years ago

Do you mean here? (get.py lines 185–189)

if len(sys.argv) > 1 and sys.argv[1] == 'clean-slate':
    os.system("rm -fr scraperwiki.sqlite; crontab -r >/dev/null 2>&1")
    import scraperwiki
    set_status_and_exit('clean-slate', 'error', 'No user set')
    sys.exit()
frabcus commented 11 years ago

Yes.

It should drop both the tables it has made (if they exist!)

On Thu, Feb 14, 2013 at 03:58:13AM -0800, Zarino Zappia wrote:

Do you mean here? (get.py lines 185–189)

if len(sys.argv) > 1 and sys.argv[1] == 'clean-slate':
    os.system("rm -fr scraperwiki.sqlite; crontab -r >/dev/null 2>&1")
    import scraperwiki
    set_status_and_exit('clean-slate', 'error', 'No user set')
    sys.exit()

Reply to this email directly or view it on GitHub: https://github.com/scraperwiki/twitter-follows-tool/issues/37#issuecomment-13544478

zarino commented 11 years ago

…using the sqlite3 Python module, I assume (rather than putting both the database reset and the cron reset in an os.exec call)