Giter VIP home page Giter VIP logo

weiyun_share's Introduction

腾讯微云笔记解析

https://share.weiyun.com/*****

传入链接末尾的字符串.代表k值也就是id


用法:

go get -u github.com/jwwsjlm/weiyun_share
package main

import "fmt"
import "github.com/jwwsjlm/weiyun_share"

func main() {

	w := weiyun.NewWeiyun("******")//链接末尾的字符串
	json, err := w.WeiyunJson() //如果笔记内容为json内容的话.可以使用weiyunjson方法来解析.会过滤html标签内容.返回可被解析的json内容.自行解析
	if err != nil {
		panic(err)
	}
	fmt.Println(json)
}

具体可看weiyun_text.go文件具体例子


具体用到的代码:

gjson 用于json解析

bluemonday 用于html标签去除


下一版本增加密码.先写个例子自己玩玩

weiyun_share's People

Contributors

jwwsjlm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.