<commit_before>SlideGrubber
============

Slidegrubber is a python package that can download SlideShare presentantions as PDF files.
It uses the power of BeautifulSoup_, ImageMagick_ (through Wand_), and Requests_.


Requirements
------------
You will need ImageMagick installed on your system to be able to do the image to pdf conversion.

.. code-block:: console
    $ apt-get install imagemagick


Usage
-----
You can simply pass the url as the only argument and it will download the pdf to the current working directory.

.. code-block:: console
    >>> from slidegrubber import grub
    >>> grub('http://www.slideshare.net/author/my-slide')
    '/current_working_directory/my_slide-by-author.pdf'

Or you can specify where to download

.. code-block:: console
    >>> from slidegrubber import grub
    >>> grub('http://www.slideshare.net/author/my-slide', '/my_local_path/my_slide.pdf')
    '/my_local_path/my_slide.pdf'

.. _BeautifulSoup: https://www.crummy.com/software/BeautifulSoup/bs4/
.. _ImageMagick: http://www.imagemagick.org/
.. _Wand: http://wand-py.org/
.. _Requests: http://docs.python-requests.org/<commit_msg>typos<commit_after>SlideGrubber
============

Slidegrubber is a python package that can download SlideShare presentations as PDF files.
It uses the power of BeautifulSoup_, ImageMagick_ (through Wand_), and Requests_.


Requirements
------------
You will need ImageMagick installed on your system to be able to do the image to pdf conversion.

.. code-block:: console
    $ apt-get install imagemagick


Usage
-----
You can simply pass the url as the only argument and it will download the pdf to the current working directory:

.. code-block:: console
    >>> from slidegrubber import grub
    >>> grub('http://www.slideshare.net/author/my-slide')
    '/current_working_directory/my_slide-by-author.pdf'

Or you can specify where to download it:

.. code-block:: console
    >>> from slidegrubber import grub
    >>> grub('http://www.slideshare.net/author/my-slide', '/my_local_path/my_slide.pdf')
    '/my_local_path/my_slide.pdf'

.. _BeautifulSoup: https://www.crummy.com/software/BeautifulSoup/bs4/
.. _ImageMagick: http://www.imagemagick.org/
.. _Wand: http://wand-py.org/
.. _Requests: http://docs.python-requests.org/
{'fraction_non_alphanumeric': 0.1343680709534368, 'fraction_numerical': 0.0008869179600886918, 'mean_word_length': 3.6324435318275152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3331779', 'n_tokens_mistral': 719, 'n_tokens_neox': 705, 'n_words': 206}