5 Commits

Author SHA1 Message Date
criseLYJ 5afc6fe19f 修复一些小问题 2019-03-22 22:34:41 +08:00
criseLYJ 837256702f PEP8 2019-03-08 23:26:36 +08:00
cclauss 74864302d2 Undefined name: file_path --> file_name
[flake8](http://flake8.pycqa.org) testing of https://github.com/CriseLYJ/awesome-python-login-model on Python 3.7.1

$ __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__
```
./guoke/guoke_spider.py:76:41: F821 undefined name 'file_path'
            print('Already Downloaded', file_path)
                                        ^
./facebook/facebook.py:52:27: E999 SyntaxError: invalid syntax
        print '{0}:{1}:{2}'.format(fb_dtsg, user_id, xs)
                          ^
./baidu2/baidu.py:193:13: F821 undefined name 'raw_input'
    input = raw_input
            ^
1     E999 SyntaxError: invalid syntax
2     F821 undefined name 'raw_input'
3
```
__E901,E999,F821,F822,F823__ are the "_showstopper_" [flake8](http://flake8.pycqa.org) issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
2019-03-07 09:07:48 +01:00
criseLYJ 9b4db1c5c8 果壳spider爬的很快,当心一堆文件 2019-03-07 01:59:04 +08:00
criseLYJ e79ac521a2 新增多个模拟登录 2019-03-06 18:23:58 +08:00