Skip to content

pgolovkin/yandex-price-scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yandex-price-scrapper

This project gets the information about the price of the goods specified in the code and USD CBRF rate. The result is saved on the google drive https://docs.google.com/spreadsheets/d/1vuQZDHKR8k7htqynK0G34dQ1enClkAcFNrf7uP0RHd4/edit?usp=sharing

Google OAuth

Use the example https://developers.google.com/drive/api/quickstart/python in order to get the token.

from google_auth_oauthlib.flow import InstalledAppFlow

GOOGLE_SCOPES = ['https://www.googleapis.com/auth/spreadsheets']

flow = InstalledAppFlow.from_client_secrets_file('secret.json', GOOGLE_SCOPES)
creds = flow.run_local_server(port=0)
print(creds.to_json())

where secret.json is a json file that you can download from the Google console.

Environment variables

GOOGLE_TOKEN - encoded in base 64 google access token for accesing the sheet GOOGLE_DOC_ID - the id of the Google sheet PROXY_LIST - encoded in base 64 list of proxies (json array). The example is

[
  {"http": "10.10.10.10:8080"},
  {"https": "10.10.10.10:443"}
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages