Skip to content

Instantly share code, notes, and snippets.

@WDBell
WDBell / apples.py
Last active Jun 15, 2017
Follow the price of apples
View apples.py
url = '''https://www.marketnews.usda.gov/mnp/fv-report-top-filters?&navClass=FRUITS&commAbr=APL&navType=byComm&repType=termPriceDaily&className=FRUITS&commName=%(commName)s&locName=&type=termPrice&repDate=%(theDate)s&endDate=%(theDate)s&format=excel&rebuild=false'''
import pendulum
from selenium import webdriver
commName = 'APPLES'
first_date = pendulum.parse('2017.6.13')
last_date = pendulum.parse('2017.6.17')
finish = last_date.add(days=+1)
You can’t perform that action at this time.