A simple line code that makes adding folders to the exclusion of Dropbox sync.
find `pwd` -type d -regex ".*\(node_modules\|temp\|tmp\|bower_components\|cache\)$" -prune -exec dropbox-cli exclude add {} \;
After your Dropbox properly installed, configure your dropbox.py file to enable dropbox-cli command line.