Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danozgriff committed Feb 27, 2016
1 parent 1dbd8f2 commit 6dde48f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Expand Up @@ -40,7 +40,9 @@
#d1list = scraperwiki.sqlite.execute("select `TIDM`, `Price`, `Date` from Signal_History where tidm = '" + tidm + "' and Date = '%d'" % (d1date))
print "%s-%s-%s" % (d1date.strftime('%Y'), d1date.strftime('%m'), d1date.strftime('%d'))
print " "
d1list = scraperwiki.sqlite.execute("select `TIDM`, `Date`, strftime('%m',Date,'unixepoch') from Signal_History where tidm = '" + tidm + "' and Date > '%s-%s-%s'" % (d1date.strftime('%Y'), d1date.strftime('%m'), d1date.strftime('%d')))
#d1list = scraperwiki.sqlite.execute("select `TIDM`, `Date`, strftime('%m',Date,'unixepoch') from Signal_History where tidm = '" + tidm + "' and Date > '%s-%s-%s'" % (d1date.strftime('%Y'), d1date.strftime('%m'), d1date.strftime('%d')))
d1list = scraperwiki.sqlite.execute("select `TIDM`, `Date`, strftime('%m',Date) from Signal_History where tidm = '" + tidm + "' and Date > '%s'" % (d1date))

#d1list = scraperwiki.sqlite.execute("select `TIDM`, `Date`, strftime('%m',SH.Date) from Signal_History as SH where tidm = '" + tidm + "' and SH.Date > '2015-01-15'") # '%s-%s-%s' group by `TIDM`" % (d1date.year, d1date.month, d1date.day))
for y in d1list["data"]:
print y[0]
Expand Down

0 comments on commit 6dde48f

Please sign in to comment.