shanbayAddWords | A python program to add words in batch For Shanbay.com

 by   yuchenlin Python Version: 1.0 License: No License

kandi X-RAY | shanbayAddWords Summary

kandi X-RAY | shanbayAddWords Summary

shanbayAddWords is a Python library. shanbayAddWords has no bugs, it has no vulnerabilities and it has low support. However shanbayAddWords build file is not available. You can download it from GitHub.

扇贝批量填词到词库 扇贝还是很不错的背单词系统,但是我一直不理解为什么官方提供的批量添加单词页面每次限制10个= =。 美剧党随手挤了很多单词准备导入的时候,还有从有道单词本导入的时候,都很尴尬。。查了一下,还没有人写过这方面的东西,所以尝试着用python写了个。 下载地址:   基本思路: 1.请求用户授权 2.循环查词 获取词的ID 3.循环添加到词库 (需要词的ID). A.关于获取用户授权 A.1 设置参数 demo创建了一个类叫做APIclient来集成了各种属性,和各种get post方法的源头,方便使用。 其中几个重要的参数都可以简单的搞定,比如app_key secret redirect_url 然后给用户生成一个固定的引导授权地址。 A.2 获取code 当用户授权后,系统会自动根据回调地址回调code参数,如果设置成扇贝默认的回调地址,code部分直接显示在url中,让用户copy回来给我就好了。。虽然不够友好,但是也只能这样了,毕竟要想自动的接收,最开始就要用python调用浏览器来打开这个授权网页,这个感觉好像很麻烦。。 A.3 根据code生成token。 这个也直接写在类里了,不过很简单,按照文档就一步,之后的所有操作都是根据token来和服务器进行身份识别的,所以很重要,而且每一步都要确认token是否过期。. B.get查词 这个就很简单了,不多说,主要的亮点是json的数据格式很好,import json之后,系统自动处理为dict类型,特别方便调用。 C.post填词 更简单,但是要判断是否添加成功,毕竟不是每个词都在词库里记录了。. D.界面 tkinter 还是比较方便吧 但是在win和mac下尺寸不好调成一致,还有mac下输入框中文不能输入很闹心。如果哪一天出现了和vs搞winform那么简单无脑的IDE 我大概就离不开python了~. E. 也同时了解到了一个比较惊艳的python高级技巧,郁闷的是我不知道这个东西学名叫什么,从功能上来说,它实现了动态解析函数名的作用。 比如: bdc_body = client.get.bdc__search(word=w) 这里的client.get 是这样的 def getattr(self, attr): def wrap(**kw): if self.client.is_expires(): raise APIError('21327', 'expired_token', attr).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shanbayAddWords has a low active ecosystem.
              It has 11 star(s) with 1 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              shanbayAddWords has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of shanbayAddWords is 1.0

            kandi-Quality Quality

              shanbayAddWords has no bugs reported.

            kandi-Security Security

              shanbayAddWords has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              shanbayAddWords does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              shanbayAddWords releases are available to install and integrate.
              shanbayAddWords has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shanbayAddWords and discovered the below as its top functions. This is intended to give you an instant insight into shanbayAddWords implemented functionality, and help decide if they suit your requirements.
            • Enter login
            • Make an HTTP request
            • Encode a multipart request
            • Request an access token
            • Returns the authorization URL
            • Encode parameters
            • Wrapper for HTTP POST
            • Set an access token
            • Guess the content type for a given extension
            • HTTP POST operation
            • Wrapper around http get
            Get all kandi verified functions for this library.

            shanbayAddWords Key Features

            No Key Features are available at this moment for shanbayAddWords.

            shanbayAddWords Examples and Code Snippets

            No Code Snippets are available at this moment for shanbayAddWords.

            Community Discussions

            No Community Discussions are available at this moment for shanbayAddWords.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shanbayAddWords

            You can download it from GitHub.
            You can use shanbayAddWords like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/yuchenlin/shanbayAddWords.git

          • CLI

            gh repo clone yuchenlin/shanbayAddWords

          • sshUrl

            git@github.com:yuchenlin/shanbayAddWords.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link