IT notes

python site packages

To find the python site-packages paths: $ python -m site

OBJC_DISABLE_INITIALIZE_FORK_SAFETY

In macOS High Sierra if getting this: objc[55492]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. objc[55492]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug. Define: export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES This will fix temporally fix the problem and allow program to continue executing, more about this issue here: http://sealiesoftware.

webscraping

Webscraping using python + chrome In mac OS X, install chromedriver and selenium: brew install chromedriver Install selenium via pip: pip install -U selenium if required to install globally sudo pip install selenium To test, open a terminal, type python and try: Python 2.7.12 (default, Oct 11 2016, 05:20:59) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin Type "help", "copyright", "credits" or "license" for more information.