Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

github.com/dfkdream/godc

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dfkdream/godc

  • v1.2.2
  • Source
  • Go
  • Socket score

Version published
Created
Source

godc

Go Report Card GoDoc

๋””์‹œ์ธ์‚ฌ์ด๋“œ ๋น„๊ณต์‹ API

๊ฒŒ์‹œ๊ธ€ ๋ชฉ๋ก,๊ฒŒ์‹œ๊ธ€ ๋‚ด์šฉ, ๊ฐค๋Ÿฌ๋ฆฌ ๋ชฉ๋ก ์ฝ๊ธฐ ๊ธฐ๋Šฅ๋งŒ ์ง€์›ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚˜๋จธ์ง€ ๊ธฐ๋Šฅ์€ ์ถ”๊ฐ€ ์˜ˆ์ •

Install

go get github.com/dfkdream/godc

Document

  • godoc

ArticleData

ํ•„๋“œ ์ด๋ฆ„์ž๋ฃŒํ˜•์„ค๋ช…
URLstring๊ฒŒ์‹œ๊ธ€ URL
Titlestring๊ฒŒ์‹œ๊ธ€ ์ œ๋ชฉ
Typestring๊ฒŒ์‹œ๊ธ€ ํƒ€์ž…
Tagstring๊ฒŒ์‹œ๊ธ€ ๋ง๋จธ๋ฆฌ
ReplyCountstring๋Œ“๊ธ€ ์ˆ˜
Namestring์ž‘์„ฑ์ž ์ด๋ฆ„
Timestampstring์ž‘์„ฑ ์‹œ๊ฐ„
ViewCounterstring์กฐํšŒ์ˆ˜
UpVotestring์ถ”์ฒœ ์ˆ˜
WriterIDstring( | ๋กœ ๊ตฌ๋ถ„)์ž‘์„ฑ์ž ID/IP
ArticleData.Type
string์„ค๋ช…
ico_pic ico_tํ…์ŠคํŠธ๋งŒ
ico_pic ico_p_y์ด๋ฏธ์ง€ ํฌํ•จ
ico_pic ico_mv๋™์˜์ƒ ํฌํ•จ
ico_pic ico_t_cํ…์ŠคํŠธ๋งŒ, ๊ฐœ๋…๊ธ€
ico_pic ico_p_c์ด๋ฏธ์ง€ ํฌํ•จ, ๊ฐœ๋…๊ธ€

ArticleBody

ํ•„๋“œ ์ด๋ฆ„์ž๋ฃŒํ˜•์„ค๋ช…
Titlestring๊ฒŒ์‹œ๊ธ€ ์ œ๋ชฉ
Namestring์ž‘์„ฑ์ž ์ด๋ฆ„
IPstring์ž‘์„ฑ์ž IP(์œ ๋™์ผ ๊ฒฝ์šฐ๋งŒ)
GallogURLstring์ž‘์„ฑ์ž ๊ฐค๋กœ๊ทธ URL
Timestampstring์ž‘์„ฑ ์‹œ๊ฐ„
ViewCounterstring์กฐํšŒ์ˆ˜
ReplyCountstring๋Œ“๊ธ€ ์ˆ˜
Bodystring(HTML)๊ฒŒ์‹œ๊ธ€ ๋‚ด์šฉ
UpVotestring์ถ”์ฒœ ์ˆ˜
DownVotestring๋น„์ถ”์ฒœ ์ˆ˜
Replies[]Reply๋Œ“๊ธ€
Reply
ํ•„๋“œ ์ด๋ฆ„์ž๋ฃŒํ˜•์„ค๋ช…
URLstring๊ฐค๋กœ๊ทธ ์ฃผ์†Œ
Namestring์ž‘์„ฑ์ž ์ด๋ฆ„
IDstring์ž‘์„ฑ์ž ID
IPstring์ž‘์„ฑ์ž IP(์œ ๋™์ผ ๊ฒฝ์šฐ๋งŒ)
Typestring๋Œ“๊ธ€(reply)/๋Œ€๋Œ“๊ธ€(re-reply) ๊ตฌ๋ถ„
Bodystring(HTML)๋Œ“๊ธ€ ๋‚ด์šฉ
Timestampstring์ž‘์„ฑ ์‹œ๊ฐ„

GallInfo

ํ•„๋“œ ์ด๋ฆ„์ž๋ฃŒํ˜•์„ค๋ช…
Categorystring๊ฐค๋Ÿฌ๋ฆฌ ์นดํ…Œ๊ณ ๋ฆฌ
Namestring๊ฐค๋Ÿฌ๋ฆฌ ์ฝ”๋“œ
KoNamestring๊ฐค๋Ÿฌ๋ฆฌ ์ด๋ฆ„
Managerstring๋งค๋‹ˆ์ € ID
SubManagerstring( , ๋กœ ๊ตฌ๋ถ„)๋ถ€๋งค๋‹ˆ์ € ID
Nostring๊ฒ”๋Ÿฌ๋ฆฌ ๋ฒˆํ˜ธ

Example Code

GalleryID ๊ฐค๋Ÿฌ๋ฆฌ์˜ ๊ฒŒ์‹œ๊ธ€ ๋ชฉ๋ก 1ํŽ˜์ด์ง€๋ฅผ ์ฝ์–ด์˜ต๋‹ˆ๋‹ค.

package main

import (
	"fmt"
	"log"

	"github.com/dfkdream/godc"
)

func main() {
	dat, err := godc.FetchArticleList("<GalleryID>", 1)

	if err != nil {
		log.Fatal(err)
	}

	for index, data := range dat {
		fmt.Printf("=============article%d==============\n", index)
		fmt.Printf("URL: %s\nTitle: %s\nType: %s\nReplyCount: %s\nName : %s\nTimestamp : %s\nViewCounter : %s\nUpVote : %s\nWriterID : %s\n",
			data.URL,
			data.Title,
			data.Type,
			data.ReplyCount,
			data.Name,
			data.Timestamp,
			data.ViewCounter,
			data.UpVote,
			data.WriterID)
	}
}

FAQs

Package last updated on 07 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc