Receiving a ValueError: Unknown level when running GoogleScraper
<p>I recently decided to get to grips with some python and try to learn my way around the language but i've inevitably ran into a couple of problems that I was hoping someone could help me with.</p>

<p>Basically, I'm running on an OSx machine, I uninstalled the python that came with the operating system and used HomeBrew to download python 3.5.2, all that went successfully. Next I installed GoogleScraper (<a href="https://github.com/NikolaiT/GoogleScraper" rel="nofollow">https://github.com/NikolaiT/GoogleScraper</a>) which went well after a couple tries, but now, when I try to run a test query through terminal:</p>

<pre><code>GoogleScraper -m http --keyword "apple" -v2
</code></pre>

<p>After the machines whizzes and buzzes for a few seconds, it pops out with an error:</p>

<pre><code> GoogleScraper -m http --keyword "apple" -v2
Traceback (most recent call last):
  File "/usr/local/bin/GoogleScraper", line 11, in &lt;module&gt;
    sys.exit(main())
  File "/usr/local/lib/python3.5/site-packages/GoogleScraper/core.py", line 173, in main
    setup_logger(level=config.get('log_level').upper())
  File "/usr/local/lib/python3.5/site-packages/GoogleScraper/log.py", line 23, in setup_logger
    logger.setLevel(level)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/__init__.py", line 1255, in setLevel
    self.level = _checkLevel(level)
  File "/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/logging/__init__.py", line 187, in _checkLevel
    raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: '2'
</code></pre>

<p>I've been trying to learn python online and am making some progress, but for the life of me can't figure out what any of that error means, hopefully one of you could at least point me in the direction of a solution.</p>

<p>Many thanks!</p>

<p>As per <a href="https://github.com/NikolaiT/GoogleScraper/blob/master/GoogleScraper/log.py" rel="nofollow">the source</a>, the logging level is a string that corresponds to a <a href="https://en.wikipedia.org/wiki/Syslog#Severity_level" rel="nofollow">syslog severity level</a>, not a number indicating level of verboseness.  This appears to work:</p>

<pre><code>GoogleScraper -m http --keyword "apple" -v INFO
</code></pre>

python osx python-3.x