from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
import driver
from time import sleep
from bs4 import BeautifulSoup as BS
ua = dict(DesiredCapabilities.CHROME)
options = webdriver.ChromeOptions()
options.add_argument('headless')
browser = webdriver.Chrome(chrome_options=options)
browser.get('https://csgorun.org/')
soup = BS(browser.page_source,"html.parser")
months_range = [31,29,31,30,31,30,31,31,30,31,30,31]
weeks = ["сред","чет","пят","суб","вос","пон","вто"]
def ret_2020(months_range,weeks):
MR = months_range
WK = weeks
week = 0
for month in range(len(MR)):
for days in range(MR[month]):
print(month+1,":",days+1," ",weeks[week])
week += 1
if week >= 7:
week = 0
ret_2020(months_range,weeks)