Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在爬取部分lofter时会出错 #1

Open
qjzcj2008 opened this issue Nov 3, 2017 · 0 comments
Open

在爬取部分lofter时会出错 #1

qjzcj2008 opened this issue Nov 3, 2017 · 0 comments

Comments

@qjzcj2008
Copy link

OS:Windows 10 16299.19 64-bit
Python:v3.6.3:2c5fed8, Oct 3 2017, 18:11:49

出错时提示:
Traceback (most recent call last):
File "lofter_crawler.py", line 203, in
main(blogname, TIMESLEEP)
File "lofter_crawler.py", line 177, in main
text.process_item(item)
File "lofter_crawler.py", line 148, in process_item
self.file.write(text+'\n')
UnicodeEncodeError: 'gbk' codec can't encode character '\u****' in position *: illegal multibyte sequence
(*处不同lofter的值不同 character处出现过如:\u0e51、\u2764等)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant