raghur / easyblogger Goto Github PK
View Code? Open in Web Editor NEWPython client for Blogger platform. Write blog posts in Markdown or asciidoc and publish them on Blogger.
Python client for Blogger platform. Write blog posts in Markdown or asciidoc and publish them on Blogger.
easyblogger file MyBlogPost.md
Kindly provide some more details for the above command. I tried first time it was working good but I am not getting same output after second time. Unable to publish too.
blogger>python easy_blog.py --blogid 1643794921147254 file myblogpost.md --publish
usage: easyblogger [-h] [-i CLIENTID] [-s SECRET]
[-v {INFO,DEBUG,WARNING,ERROR,CRITICAL}]
[--blogid BLOGID | --url URL]
{get,post,delete,update,file} ...
easyblogger: error: unrecognized arguments: --publish
myblogpost.md
<!--
Title: This is your title
PostId:
Labels: a,b,c
format: markdown
published: false
filters: <path to your installed filter>
-->
# This is my content
Hi, I get this error using command
easyblogger get -p "post_number" -d markdown --write-files
.easyblogger.credentials present
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 536, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/blogger/main.py", line 87, in printPosts
converted).encode('utf-8',
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 1: ordinal not in range(128)
Sat Mar 10 01:08:34 2018 <Greenlet at 0x7ffba28a09b0: printPosts({u'status': u'LIVE', u'content': u'\nW\u0142a\u015, 'id,title,url', 'markdown', True)> failed with UnicodeEncodeError
output of locale
LANG=pl_PL.utf8
LANGUAGE=
LC_CTYPE="pl_PL.utf8"
LC_NUMERIC="pl_PL.utf8"
LC_TIME="pl_PL.utf8"
LC_COLLATE="pl_PL.utf8"
LC_MONETARY="pl_PL.utf8"
LC_MESSAGES="pl_PL.utf8"
LC_PAPER="pl_PL.utf8"
LC_NAME="pl_PL.utf8"
LC_ADDRESS="pl_PL.utf8"
LC_TELEPHONE="pl_PL.utf8"
LC_MEASUREMENT="pl_PL.utf8"
LC_IDENTIFICATION="pl_PL.utf8"
LC_ALL=
from .blogger import EasyBlogger, ContentArgParser
It wont raise error if we want to use main.py outside blogger directory.
Hi,
First I would like to thank you for creating this nice tool!
I was able to set things up and able to export an existing post to a file in markdown format using the below command:
easyblogger --blogid 4722945922612222558 get -p 3418532693618783118 -d markdown --write-files
I am facing an issue when trying to create/update a post from file. I used the below command:
easyblogger --blogid 4722945922612222558 file this-is-my-post-title.markdown
I got the below error, which I am not sure how to resolve. Any help or pointers regarding this is greatly appreciated. Thanks!
Error Details
_C:\Users\maze\AppData\Local\Temp\tmp9ds2cgzw.adoc
'asciidoctor' is not recognized as an internal or external command,
operable program or batch file.
Command '['asciidoctor', '-v', '-r', 'asciidoctor-diagram', '-a', 'stylesheet!', '-a', 'allow-uri-read', '-a', 'sectanchors', '-a', 'sectnums', '-a', 'last-update-label!', '-a', 'experimental', '-a', 'data-uri', '-a', 'icons=font', 'C:\Users\maze\AppData\Local\Temp\tmp9ds2cgzw.adoc']' returned non-zero exit status 1.
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "c:\users\maze\appdata\local\programs\python\python37-32\lib\site-packages\blogger\main.py", line 328, in processItem
publishDate=args.publishDate)
File "c:\users\maze\appdata\local\programs\python\python37-32\lib\site-packages\blogger\blogger.py", line 273, in updatePost
blogPost['content'] = self._getMarkup(content, fmt, filters)
File "c:\users\maze\appdata\local\programs\python\python37-32\lib\site-packages\blogger\blogger.py", line 231, in _getMarkup
raise e
File "c:\users\maze\appdata\local\programs\python\python37-32\lib\site-packages\blogger\blogger.py", line 225, in _getMarkup
self.check_output(cmd, shell=True)
File "c:\users\maze\appdata\local\programs\python\python37-32\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "c:\users\maze\appdata\local\programs\python\python37-32\lib\site-packages\gevent\subprocess.py", line 1686, in run
raise with_stdout_stderr(CalledProcessError(retcode, process.args, stdout), stderr)
subprocess.CalledProcessError: Command '['asciidoctor', '-v', '-r', 'asciidoctor-diagram', '-a', 'stylesheet!', '-a', 'allow-uri-read', '-a', 'sectanchors', '-a', 'sectnums', '-a', 'last-update-label!', '-a', 'experimental', '-a', 'data-uri', '-a', 'icons=font', 'C:\Users\maze\AppData\Local\Temp\tmp9ds2cgzw.adoc']' returned non-zero exit status 1.
2019-12-11T16:27:42Z <Greenlet at 0x42a3c90: processItem(Namespace(blogid='4722945922612222558', clientid=', <blogger.blogger.ContentArgParser object at 0x03AF)> failed with CalledProcessError
Hey,
I'm trying to re-auth, since the token has expired. And for some reason, this time around, even though the browser opens up, I log in, and the page says: "The authentication flow has completed." easyblogger doesn't seem to be notified properly that it has, as it just stays in waiting for auth forever. So the credential file is never created, and I have to hard kill it with Ctrl+c.
Any idea why?
I get a "AttributeError: 'function' object has no attribute 'urlparse'" error when I run:
easyblogger get -p 4422216707770689993 -d markdown -w
Here's the trace:
Traceback (most recent call last):
File "/usr/bin/easyblogger", line 11, in <module>
sys.exit(main())
File "/usr/lib/python3.6/site-packages/blogger/main.py", line 241, in main
return runner(args, blogger)
File "/usr/lib/python3.6/site-packages/blogger/main.py", line 293, in runner
printPosts(posts, args.fields, args.doc, args.tofiles)
File "/usr/lib/python3.6/site-packages/blogger/main.py", line 63, in printPosts
filename = getFilenameFromPostUrl(item['url'], docFormat)
File "/usr/lib/python3.6/site-packages/blogger/main.py", line 30, in getFilenameFromPostUrl
urlp = urlparse.urlparse(url)
AttributeError: 'function' object has no attribute 'urlparse'
Hi
I have a issue with relative path in asciidoc (like in image:./images/photo.jpg) and the only way to solve is adding dir="./" in blogger.py:
with self.namedTemporaryFile(delete=False, dir="./",
suffix=".adoc") as fp:
and now relative path work to me.
The blog id of blog is available in the address bar after logging into the blogger. Is there a reason you are suggesting to look into source in your Read me file?
im on windows 11 and have installed python 3.10 via MS Store, Now when running the command easyblogger --blogid 123456789 get
im getting below error
easyblogger: The term 'easyblogger' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I am running easyblogger file myfile.md
with my markdown content:
<!--
{Labels: 'helloworld,python,blank', PostId: '', Title: Hello python,
format: markdown, published: true}
-->
# This is my content
testing easyblogger
sdfkjsdfsdfsd
sagdfgdfg
Every time I am running my command, I am getting a draft post in my drafts but no published post in my blog.
So I am new to your module and I find it fascinating and easy comparing to Google's own blogger API module. My computer is ubuntu 14.04 and python 2.7
I have installed your program and its requirement pandoc by this way
sudo pip install EasyBlogger
sudo apt-get install pandoc
But when I tried to get authorized using your method
sudo easyblogger --blogid <yourblogid> get
its showing this error
File "/usr/local/bin/easyblogger", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3019, in <module>
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3003, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_res
I even tried your blogid sudo easyblogger --blogid 7642453 get
but I am getting the same error
Hi there,
When running the code I get this error in Python 3. Any ideas
C:\Users\info>easyblogger get -p 1408841626968231578 -f "id,title,url,labels"
Traceback (most recent call last):
File "c:\programdata\miniconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\programdata\miniconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\ProgramData\Miniconda3\Scripts\easyblogger.exe_main.py", line 9, in
File "c:\programdata\miniconda3\lib\site-packages\blogger\main.py", line 246, in main
return runner(args)
File "c:\programdata\miniconda3\lib\site-packages\blogger\main.py", line 328, in runner
return processItem(args)
File "c:\programdata\miniconda3\lib\site-packages\blogger\main.py", line 299, in processItem
for item in posts]
File "c:\programdata\miniconda3\lib\site-packages\blogger\main.py", line 297, in
jobs = [gevent.spawn(printPosts,
File "c:\programdata\miniconda3\lib\site-packages\blogger\blogger.py", line 141, in getPosts
self._setBlog()
File "c:\programdata\miniconda3\lib\site-packages\blogger\blogger.py", line 135, in _setBlog
request = service.blogs().getByUrl(url=self.blogUrl)
File "c:\programdata\miniconda3\lib\site-packages\googleapiclient\discovery.py", line 732, in method
raise TypeError('Missing required parameter "%s"' % name)
TypeError: Missing required parameter "url"
C:\Users\info>
Incase I need pandocs build-in syntax highlight themes. Can I pass pandoc parameters like:
--standalone
and --highlight-style=tango
within easyblogger
command?
This should in fact give me exactly what I needed for highlighting as per #100.
Hello,
you tool is super fantastic and perfect. But it lacks just one thing: upload images on blogspot.
I mean, I have an htmlpage I want upload on blogspot.. there is also a folder with images. It upload the html file but not the images that are linked in the html file.
Would be really nice that automatically it uploads the images.
Hey,
Love easyblogger by the way.
I was wondering if there is an option in the YAML you can set to specify the URL of the post:
www.myblogger.com/2018/03/my-custom-url-here.html
Thanks
I just learn how to post new from md file and set up the post date, but I got errors:
env:
python3.7,pip 20.0.2
$ easyblogger post -t 'Hello World3' -l 'test1' -c 'Hello Test' --date "2018-04-30T12:42:00+05:30"
Traceback (most recent call last):
File "/usr/local/bin/easyblogger", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/blogger/main.py", line 291, in main
return runner(args)
File "/usr/local/lib/python3.7/site-packages/blogger/main.py", line 378, in runner
return processItem(args)
File "/usr/local/lib/python3.7/site-packages/blogger/main.py", line 306, in processItem
publishDate=args.publishDate)
File "/usr/local/lib/python3.7/site-packages/blogger/blogger.py", line 246, in post
blogPost["published"] = publishDate.isoformat()
AttributeError: 'str' object has no attribute 'isoformat'
On OpenSuse, when I try to run easyblogger get to authenticate myself it opens the browser inside the terminal using w3m, which does not have javascript and fails to let me OAuth, since the google page says it needs javascript.
When I try to upload an HTML file which has single quotes in it, they are converted to ’
. This doesn't seem to happen when I send the file with -c
.
With python2 on windows, I met with this error, and don't know whether it is related to my environment settings, no same error for python3.
After comment out the two lines below, it works:
from gevent import monkey
monkey.patch_all()
Error log:
$ /C/Python27/Scripts/easyblogger file test.md
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "c:\python27\lib\site-packages\blogger\main.py", line 306, in processItem
publishDate=args.publishDate)
File "c:\python27\lib\site-packages\blogger\blogger.py", line 242, in post
service = self._OAuth_Authenticate()
File "c:\python27\lib\site-packages\blogger\blogger.py", line 129, in _OAuth_Authenticate
self.service = build('blogger', 'v3', http=http, cache_discovery=False)
File "c:\python27\lib\site-packages\googleapiclient\_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "c:\python27\lib\site-packages\googleapiclient\discovery.py", line 222, in build
requested_url, discovery_http, cache_discovery, cache)
File "c:\python27\lib\site-packages\googleapiclient\discovery.py", line 269, in _retrieve_discovery_doc
resp, content = http.request(actual_url)
File "c:\python27\lib\site-packages\oauth2client\transport.py", line 175, in new_request
redirections, connection_type)
File "c:\python27\lib\site-packages\oauth2client\transport.py", line 282, in request
connection_type=connection_type)
File "c:\python27\lib\site-packages\httplib2\__init__.py", line 1694, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "c:\python27\lib\site-packages\httplib2\__init__.py", line 1434, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "c:\python27\lib\site-packages\httplib2\__init__.py", line 1354, in _conn_request
conn.connect()
File "c:\python27\lib\site-packages\httplib2\__init__.py", line 1104, in connect
self.ssl_version, self.host)
File "c:\python27\lib\site-packages\httplib2\__init__.py", line 97, in _ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=hostname)
File "c:\python27\lib\site-packages\gevent\_sslgte279.py", line 68, in wrap_socket
_context=self)
File "c:\python27\lib\site-packages\gevent\_sslgte279.py", line 265, in __init__
raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")
ValueError: do_handshake_on_connect should not be specified for non-blocking sockets
2018-09-11T09:01:42Z <Greenlet "Greenlet-0" at 0x3837608: processItem(Namespace(blogid='6588907484021680011', clientid=', <blogger.blogger.ContentArgParser object at 0x03D0)> failed with ValueError
When I leave the publishDate value blank or delete the line, I get AttributeError: 'Namespace' object has no attribute 'publishDate' error.
Then I tried with PublishDate: 2018-09-10T10:00:00, but got the JSON serializable error.
I think the publishDate should be optional.
$ /C/Python34/Scripts/easyblogger file test.md
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "c:\python34\lib\site-packages\blogger\main.py", line 306, in processItem
publishDate=args.publishDate)
File "c:\python34\lib\site-packages\blogger\blogger.py", line 251, in post
isDraft=isDraft)
File "c:\python34\lib\site-packages\googleapiclient\discovery.py", line 788, in method
actual_path_params, actual_query_params, body_value)
File "c:\python34\lib\site-packages\googleapiclient\model.py", line 151, in request
body_value = self.serialize(body_value)
File "c:\python34\lib\site-packages\googleapiclient\model.py", line 260, in serialize
return json.dumps(body_value)
File "c:\python34\lib\json\__init__.py", line 230, in dumps
return _default_encoder.encode(obj)
File "c:\python34\lib\json\encoder.py", line 192, in encode
chunks = self.iterencode(o, _one_shot=True)
File "c:\python34\lib\json\encoder.py", line 250, in iterencode
return _iterencode(o, 0)
File "c:\python34\lib\json\encoder.py", line 173, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: datetime.datetime(2018, 9, 1, 10, 0) is not JSON serializable
2018-09-08T12:39:10Z <Greenlet "Greenlet-0" at 0x55fa948: processItem(Namespace(blogid='6588907483021620031', clientid=', <blogger.blogger.ContentArgParser object at 0x0000)> failed with TypeError
With python2.7, I met with this error, and https://stackoverflow.com/questions/12541370/typeerror-encoding-is-an-invalid-keyword-argument-for-this-function/13867190 say it is a known issue for python2.
$ /C/Python27/Scripts/easyblogger file test.md
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "c:\python27\lib\site-packages\blogger\main.py", line 310, in processItem
contentArgs.updateFileWithPostId(postId)
File "c:\python27\lib\site-packages\blogger\blogger.py", line 439, in updateFileWithPostId
with self.open(self.theFile.name, "w", encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
2018-09-11T09:15:33Z <Greenlet "Greenlet-0" at 0x4544be0: processItem(Namespace(blogid='6588907484021680011', clientid=', <blogger.blogger.ContentArgParser object at 0x0464)> failed with TypeError
I always have an issue with 'Error: redirect_uri_mismatch' what could be missing?
The redirect URI in the request, urn:ietf:wg:oauth:2.0:oob,
can only be used by a Client ID for native application.
It is not allowed for the WEB client type. You can create a Client ID
for native application at https://console.developers.google.com/apis/credentials/oaut
This is the exact error.
Hey,
Good work on easyblogger, I really like it. I've noticed if you publish a file that uses the comment, the first time, it adds a draft and adds the postId to the comment. Now if I change a few things, and publish a gain, even if I have published to false, the draft will be published, instead of just updating the draft.
I'm not sure if this is intentional or a bug, if the former, you think that could be changed?
To my understanding currently date and time can only be received when querying already existing Blogposts. Because I'm typically agrigate new blog posts offline to be uploaded with easy Blogger later on, i would like to keep the original creation date of the post content and set it explezitely within the command line during the insertion Prozess at a later point of time with easyblogger. Do you think this is possible?
OS: Ubuntu 18.04.4 LTS@WSL
$ easeblogger
/usr/lib/python3/dist-packages/Crypto/Random/Fortuna/FortunaGenerator.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="?
if sys.version_info[0] is 2 and sys.version_info[1] is 1:
/usr/lib/python3/dist-packages/Crypto/Random/Fortuna/FortunaGenerator.py:28: SyntaxWarning: "is" with a literal. Did you mean "=="?
if sys.version_info[0] is 2 and sys.version_info[1] is 1:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 12: character maps to <undefined>
So, can I have syntax highlighting for sourcecode tags, during posting markdown:
```javascript
...
//codes
...
```
I use python3 and test a file contains Chinese character, and got Unicode decode error. I update main.py line 368,
from
with open(f, "r", newline="\n") as fh:
to
with codecs.open(f, "r", "utf-8") as fh:
it works, but the src file got messed.
error log:
$ /C/Python34/Scripts/easyblogger.exe file test.md
Traceback (most recent call last):
File "c:\python34\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "c:\python34\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Python34\Scripts\easyblogger.exe\__main__.py", line 9, in <module>
File "c:\python34\lib\site-packages\blogger\main.py", line 291, in main
return runner(args)
File "c:\python34\lib\site-packages\blogger\main.py", line 371, in runner
contentArgs.updateArgs(argsCopy)
File "c:\python34\lib\site-packages\blogger\blogger.py", line 412, in updateArgs
self._inferArgsFromContent()
File "c:\python34\lib\site-packages\blogger\blogger.py", line 332, in _inferArgsFromContent
fileContent = self.theFile.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 71: illegal multibyte sequence
src file
<!--
PublishDate: 2018-09-10 10:00:00
format: markdown
labels: [标签1, 标签2, 标签3]
published: false
title: TEST
-->
## 标题
这是一个测试文本。
messed file:
<!--
PublishDate: 2018-09-10 10:00:00
format: markdown
id: '187016465340238250'
labels: ["\u6807\u7B7E1", "\u6807\u7B7E2", "\u6807\u7B7E3"]
published: false
title: TEST
-->
## ???
??һ?????ı???
To be used with python.
I have been trying hard to install for many hours but the error says :
File "/data/data/com.termux/files/usr/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/data/data/com.termux/files/usr/tmp/pip-install-jpf2hqu8/gevent_6ddd7fc37c534f9fa2fe5de4aba47bbf/deps/libev" && sh ./configure -C > configure-output.txt )' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for gevent Failed to build gevent ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects
Any help is highly appreciated. Thanks in advance. 🙏
I install easyblogger and run it under msys2 env, but encounter the following error, have no idea after google, seems to be related with greentlet or filters.
$ /C/Python34/Scripts/easyblogger file test.md
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 716, in gevent._greenlet.Greenlet.run
File "c:\python34\lib\site-packages\blogger\main.py", line 306, in processItem
publishDate=args.publishDate)
File "c:\python34\lib\site-packages\blogger\blogger.py", line 243, in post
markup = self._getMarkup(content, fmt, filters)
File "c:\python34\lib\site-packages\blogger\blogger.py", line 234, in _getMarkup
raw, 'html', format=fmt, filters=filters)
File "c:\python34\lib\site-packages\pypandoc\__init__.py", line 69, in convert
outputfile=outputfile, filters=filters)
File "c:\python34\lib\site-packages\pypandoc\__init__.py", line 325, in _convert_input
'Pandoc died with exitcode "%s" during conversion: %s' % (p.returncode, stderr)
RuntimeError: Pandoc died with exitcode "83" during conversion: b'Error running filter <path:\r\nCould not find executable <path\r\n'
2018-09-08T06:06:18Z <Greenlet "Greenlet-0" at 0x5929848: processItem(Namespace(blogid='6585907284031683011', clientid=', <blogger.blogger.ContentArgParser object at 0x0000)> failed with RuntimeError
Hi,
thanks a lot for this great CMD-blogging-script :-)
When i use German Umlaute like "ü,ä,ö" for uploading a new post from a Win 10 Commandline (or batch), i get the Error:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 0: invalid start byte
I tired to Escape "ü" to "ü", but this will not work for the Labels (In Blogger the Post-Text will be displayed korrektly but the labels will display the escaping).
Am i doing something wrong?
C:\Users\xxx>easyblogger --blogid "xxx" post -t "ü" -l "ü" -c "ü" --publish
Traceback (most recent call last):
File "c:\program files (x86)\python27\lib\runpy.py", line 174, in run_module_as_main
"main", fname, loader, pkg_name)
File "c:\program files (x86)\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Program Files (x86)\Python27\Scripts\easyblogger.exe_main.py", line 9, in
File "c:\program files (x86)\python27\lib\site-packages\blogger\main.py", line 246, in main
return runner(args)
File "c:\program files (x86)\python27\lib\site-packages\blogger\main.py", line 328, in runner
return processItem(args)
File "c:\program files (x86)\python27\lib\site-packages\blogger\main.py", line 259, in processItem
fmt=args.format)
File "c:\program files (x86)\python27\lib\site-packages\blogger\blogger.py", line 245, in post
isDraft=isDraft)
File "c:\program files (x86)\python27\lib\site-packages\googleapiclient\discovery.py", line 790, in method
actual_path_params, actual_query_params, body_value)
File "c:\program files (x86)\python27\lib\site-packages\googleapiclient\model.py", line 151, in request
body_value = self.serialize(body_value)
File "c:\program files (x86)\python27\lib\site-packages\googleapiclient\model.py", line 260, in serialize
return json.dumps(body_value)
File "c:\program files (x86)\python27\lib\json_init.py", line 244, in dumps
return _default_encoder.encode(obj)
File "c:\program files (x86)\python27\lib\json\encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "c:\program files (x86)\python27\lib\json\encoder.py", line 270, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 0: invalid start byte
Thanks!
$ easyblogger --blogid 923939393 get
/easyblogger/blogger/main.py:40: MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. Please monkey-patch earlier. See gevent/gevent#1016
monkey.patch_all()
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/v2/auth?client_id=-
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
--noauth_local_webserver
===
~/.easyblogger
--clientid
93939239
--secret
30939039032
===
docker
ubuntu 16.04
python3.6
T.T
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.