Skip to content

jaytaylor/gcse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

361 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Search GoSearch

A keyword search engine helping people to find popular and relevant Go packages.

Online service: Go Search

This is the root package with shared functions.

Sub-packages are commands for running:

  • HTTP Server: Searching and web service
  • ToCrawl: Find packages to crawl.
  • Crawler: Crawling package files.
  • MergeDocs: Merge crawled package files with doc DB.
  • Indexer: Analyzing package information and generating indexed data for searching.

Development

You'll need to perform the following steps to get the server up and running:

  1. Install gcse: go get -u github.com/daviddengcn/gcse/...
  2. Create a basic conf.json file, limiting the crawler to a one minute run: { "crawler": { "due_per_run": "1m" } }
  3. Run the package finder: gcse-tocrawl
  4. Run the crawler: gcse-crawler
  5. Merge the crawled docs: gcse-mergedocs
  6. Run the indexer: gcse-indexer
  7. Run the server: gcse-service-web
  8. Visit http://localhost:8080 in your browser

LICENSE

BSD license.

TODOs

[ ] Multiple concurrent crawler jobs (so it won't take years to build a complete index).

[ ] Fix markdown generation for displaying package READMEs (or highlights) in HTML.

[ ] Better log library.

[ ] Better flags for all command-line apps.

[ ] Proper github rate-limiting detection in spider/github package.

[ ] Mark all github / bitbucket specific spots and mark them, and interfacify.

[ ] Implement support for gitlab-hosted repositories.

About

Project for Go Search, a search engine for finding popular and relevant packages.

Resources

License

BSD-2-Clause, BSD-3-Clause licenses found

Licenses found

BSD-2-Clause
LICENSE
BSD-3-Clause
license.txt

Stars

1 star

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 49.2%
  • CSS 31.0%
  • JavaScript 15.0%
  • HTML 4.3%
  • Other 0.5%