<commit_before># Fundies-Assignment-Downloader
A hacked-together script to download all the homework a tutor has to grade.

To install all of the dependencies, install the following:

::
  Google Chrome (it uses it by default, you can change it to Firefox or whatever but it's untested)
  python2
  selenium (python bindings, you can find it in pip)

To install selenium, just run this on the commandline (If running OSX/Linux and have pip installed):

::
  pip install selenium


To run it, you simple call this from the command line:

.. code :: bash
   python2 DownloadAssignments names.txt 4

In this case, the program will grab all the names in names.txt, and grab all of their completed Problem Set 4 assignments

names.txt can be any text file, the only condition is that it only contain full student names, with first and last separated by a space, and each complete name separated by a new line. For example:

::
  Foo Bar
  <NAME>
  <NAME>


There NEEDs to be a file called creds.txt that contains your husky id and your husky password, separated each by a newline. Like so:


::<commit_msg>Updated README, fixing code block issues<commit_after># Fundies-Assignment-Downloader
A hacked-together script to download all the homework a tutor has to grade.

To install all of the dependencies, install the following:

::

  Google Chrome (it uses it by default, you can change it to Firefox or whatever but it's untested)
  python2
  selenium (python bindings, you can find it in pip)

To install selenium, just run this on the commandline (If running OSX/Linux and have pip installed):

::

  pip install selenium


To run it, you simple call this from the command line:

.. code :: bash

   python2 DownloadAssignments names.txt 4

In this case, the program will grab all the names in names.txt, and grab all of their completed Problem Set 4 assignments

names.txt can be any text file, the only condition is that it only contain full student names, with first and last separated by a space, and each complete name separated by a new line. For example:

::

  Foo Bar
  <NAME>
  <NAME>


There NEEDs to be a file called creds.txt that contains your husky id and your husky password, separated each by a newline. Like so:


::

{'fraction_non_alphanumeric': 0.048791405550581916, 'fraction_numerical': 0.0035810205908683975, 'mean_word_length': 3.8905908096280086, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3152261', 'n_tokens_mistral': 626, 'n_tokens_neox': 584, 'n_words': 353}