In my eyes, I admire three types of people: one is the designer; One is the writer; One is programmers.

All three are constantly changing the world for the better by creating or improving work. Every time I see the works of masters, I can’t help but sigh that the difference between people is so big. But this does not prevent us from learning from them and moving forward in a better direction.

In the past few years, I preferred writers to writers and always imagined that I could change the world through my works. As it turned out, this path in the real world required a lot of perseverance and a little talent.

With graduation, work. I prefer designers to programmers, and they have something in common. Programming is my day job, and design is something I like to focus on in my spare time.

These three types of people are constantly revealing their abilities through their works.

So a programmer who doesn’t have an open source product would look a lot less classy.

The quality of open source works is also uneven.

A good open source work:

  • Excellent code quality
  • The problem solved is of practical use
  • Good maintenance
  • Good documentation

There is always a first step, and the first step has all sorts of disadvantages, but that’s not a reason not to open source.

Maybe the joke is much, or others give more advice. Modified more, the quality will be better.


This project attempts to parse the simplified API.

  • Programming language: Golang

The main interfaces include:

  • User: Personal home page information
  • Article: Information about an Article
  • Home-page: Information on the Home page of Jane books
  • Home-page-recommend: Jane book recommends author information
  • Home-page-topic: Jane’s recommended topic information
  • Publication: Short book publishing information

It mainly includes the above 6 categories:

  • Supports the command line
NAME: JianShu - An Application of JianShu API. USAGE: jianshu.exe [global options] command [command options] [arguments...]  VERSION: ___ ___ ___ ___ ___ ___ ___ / \ \ / \ \ / \ \ / \ \ / \ \ / \ (\ / \ _ \ _ \ \ \ _ \ \ \ / : : \ \ / : | _ | _ / : : \ \ / : / __ / __ / / _ _ Payable / \ / : : \ \ \ / : : \ __ \ / : : \ \ __ \ / : : | payable / \ \ / \ \ : \ __ \ / : : \ / / __ / / : / _ \ __ \ \ : : / / / __ / \ : : / / / __ / \ \ : : / / / / | : : / / \ \ : \ / __ / \ \ / : : / / \ \ / : / / / / __ / \ \ __ \ / : / / | : / / \ : : / / / / / / : : / / / / / / / (/, / / / / (/, / / / / (/ v1.0.0 AUTHOR: xieWei <[email protected]> COMMANDS: article get jianshu article by cli home-page get jianshu home page passage by cli recommend get home page recommend by cli topic get home page topic user get user by cli publication get publication by cli help, h Shows a list of commands or help for one command GLOBAL OPTIONS: --help, -h show help --version, -v print the versionCopy the code
> > jianshu. Exe user method - url=https://www.jianshu.com/u/58f0817209aa get - the user - id > > > thanks path > jianshu. Exe user method --url=https://www.jianshu.com/u/58f0817209aa get-user-gender >> None >> jianshu.exe user method --url=https://www.jianshu.com/u/58f0817209aa get-user-link >> https://www.jianshu.com/u/58f0817209aa >> jianshu.exe user  method --url=https://www.jianshu.com/u/58f0817209aa get-follow-number >> 9 ...Copy the code

User

  • GetUserID Obtains the user ID
  • GetUserLink Obtains the user home page URL
  • GetUserGender Obtains the user gender
  • GetFollowNumber Obtains the following number of the user
  • GetFollowerNumber Obtains the number of followers of the user
  • GetPassageNumber Gets the user’s written article
  • GetWriteNumber Obtains the number of words written by the user
  • GetLikeNumber gets the number of likes the user got
  • GetHomePagePassage Gets the user’s home page article information
  • GetPersonalDetail gets the user profile
  • GetTwitterInfo Obtains the user’s Weibo address
  • GetLikedNotes gets information about articles the author likes
  • GetSubscription gets topics/anthologies/serials of author concern
  • GetLatestActice gets the latest updates from the author
  • GetLatestCommented gets the latest comments from the author
  • GetHotPassage get the author’s most popular articles

Article

  • GetAuthor obtained the author of the article
  • GetDescription gets the author’s brief introduction
  • GetTitle gets the article title
  • GetContent Gets the full text of the article

Home-page

  • GetHomePagePassages get the home page article
  • GetNewList gets the first page listed
  • GetHotSeven hit the homepage on July 7
  • GetHotMonth gets the top 30 days on the homepage
  • GetJianshuSchool get home jianshuschool

Home-page-recommend

  • GetListRecommendAuthor Gets the first page commendation author

Home-page-topic

  • GetTopicCollectionRecommend recommended project
  • GetTopicCollectionHot Gets hot topics
  • GetTopicCollectionCity Gets the city theme
  • GetTopicCollectionSchoolyard for campus project

Publication

  • GetPublicizedBook Gets a published book
  • GetNovelBooks gets the novel
  • GetITAndJobMarket to get access to IT, finance, and jobs
  • GetCultuereAndHistory gets the culture and history
  • GetMonthlyMagazine Gets the monthly feature

The project address


This is the first in a series of about five articles.