Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Script added for saving GeeksforGeeks article as pdf #229 - #244

Merged
AdityaJ7 merged 2 commits into
Python-World:masterfrom
ShivSt:GeeksforGeeks
Sep 18, 2020
Merged

AdityaJ7 merged 2 commits into
Python-World:masterfrom
ShivSt:GeeksforGeeks

Conversation

@ShivSt

@ShivSt ShivSt commented Sep 15, 2020 •

Copy link
Copy Markdown
Contributor

Description

Script added for saving GeeksforGeeks article as pdf
Fixes #229

Type of change

Choosing one or more options from the following as per the nature of your Pull request.

  • New feature (non-breaking change which adds functionality)

Checklist:

Please tick all the boxes that are fulfilled by your Pull Request.

  • I have named my files and folder, according to this project's guidelines.
  • My code follows the style guidelines of this project.
  • My Pull Request has a descriptive title. (not a vague title like Update index.md)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
  • I have included a requirements.txt file (if external libraries are required.)
  • My changes do not produce any warnings.
  • I have added a working sample/screenshot of the script.

}
chrome_options.add_experimental_option("prefs", prefs)
chrome_options.add_argument("--kiosk-printing")
chrome_options.binary_location = (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't store any static path

use following code this will automatically install the web-driver if not installed

from webdriver_manager.firefox import GeckoDriverManager
def get_driver():
    options = Options()
    options.headless = True
    driver = webdriver.Firefox(
        executable_path=GeckoDriverManager().install(), options=options)
    return driver

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chavarera removed dependency of static location.

@ShivSt
ShivSt requested a review from chavarera September 18, 2020 08:08
@AdityaJ7
AdityaJ7 merged commit fc70ea7 into Python-World:master Sep 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Download GeeksForGeeks Articles and store them as PDF

3 participants