You can use number of parameters to start with script:
-ks,--key_start: Start keyword ID from list-kl.--key_limit: Maximum limit of keyword in output file-f,--freq_limit: Minimum keyword month frequency limit to research-w,--wait: Time to wait between web browser manipulations in seconds-t,--tries: Number of keyword statistics download tries-c,--number_of_categories: Maximum number of researching categories-r,--reload_window: Count of ready keywords before reload window
brew install --cask chromedriverbrew install --cask google-chrome- edit settings in
settings.jsonwith path to google-chrome"webdriver_dir": "/opt/homebrew/bin/chromedriver" brew install pythonpip3 install -r requirements.txtpython3 main.py
- Use DOM Ready waiting instead of
time.sleep. DOESN'T WORK - If exception "Out of range", than reload page
- Use
closureorclassAuthontefication to create number oflog_infunctions for all needed accounts - Add Comparative Frequency Data to Keyword Table
- Check exception below with closing browser window
- Solve exception
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document - Make env parameter for "webdriver_dir"
-
get_category_volume- write file downloader -
Create function to open Category Value page - Get category value and save it.
- Save whitespase in category Paths
- Study
LambdaTestlibrary forSelenium - Get Category ID from
bablo buttonfrom the bid for the first place - Create module to load Categories Value from file
- Research
driver.add_cookie(cookie)method to set cockies - Use filled CPM values instead of
0for the 1st, 2nd and 3rd places - Parse Catagory Value statistics from MPStats
- Load all CPMs and sort them by value before assign it to bids table
- Create module to use standart OS
Downloadpage for input and output data files
https://clck.ru/345Ffa - Try to use
driver.implicitly_wait()and other explicitly wait methods
https://habr.com/ru/companies/otus/articles/596071/ - Add screenshot generator into Exception handler: 'driver.save_screenshot(capture_path)'
- Write module to use
Headless Chrome - Research
keyloakfor handling login data
https://pythonworld.ru/moduli/modul-csv.html https://www.lambdatest.com/learning-hub/python-tutorial http://cs.mipt.ru/advanced_python/lessons/lab04.html - for param parser