- add github actions
This commit is contained in:
parent
393cf6346e
commit
2b54d8b02f
30
.github/audit.yml
vendored
Normal file
30
.github/audit.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
name: Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
schedule:
|
||||
- cron: '55 * * * *'
|
||||
|
||||
jobs:
|
||||
|
||||
audit:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.12
|
||||
|
||||
- name: Verify dependencies
|
||||
run: go mod verify
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Run tests
|
||||
run: go test -race -vet=off ./...
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 PJ Engineering and Business Solutions Pty. Ltd.
|
||||
Copyright (c) 2020-22 PJ Engineering and Business Solutions Pty. Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
12
README.md
12
README.md
@ -5,6 +5,7 @@
|
||||
<p align="right">
|
||||
<a href="http://godoc.org/github.com/rocketlaunchr/google-search"><img src="http://godoc.org/github.com/rocketlaunchr/google-search?status.svg" /></a>
|
||||
<a href="https://goreportcard.com/report/github.com/rocketlaunchr/google-search"><img src="https://goreportcard.com/badge/github.com/rocketlaunchr/google-search" /></a>
|
||||
<a href="https://github.com/rocketlaunchr/google-search/actions"><img src="https://github.com/rocketlaunchr/google-search/actions/workflows/audit.yml/badge.svg" /></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@ -16,12 +17,8 @@ Quickly scrape Google Search Results.
|
||||
## Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/rocketlaunchr/google-search"
|
||||
)
|
||||
import "fmt"
|
||||
import "github.com/rocketlaunchr/google-search"
|
||||
|
||||
func main() {
|
||||
fmt.Println(googlesearch.Search(nil, "cars for sale in Toronto, Canada"))
|
||||
@ -100,7 +97,7 @@ Special thanks to [Edmund Martin](https://edmundmartin.com/scraping-google-with-
|
||||
Other useful packages
|
||||
------------
|
||||
|
||||
- [awesome-svelte](https://github.com/rocketlaunchr/awesome-svelte) - Resources for killing react
|
||||
- [awesome-svelte](https://github.com/rocketlaunchr/awesome-svelte) - Resources for killing react.js
|
||||
- [dataframe-go](https://github.com/rocketlaunchr/dataframe-go) - Statistics and data manipulation
|
||||
- [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go
|
||||
- [electron-alert](https://github.com/rocketlaunchr/electron-alert) - SweetAlert2 for Electron Applications
|
||||
@ -108,4 +105,5 @@ Other useful packages
|
||||
- [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries
|
||||
- [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go
|
||||
- [remember-go](https://github.com/rocketlaunchr/remember-go) - Cache slow database queries
|
||||
- [showerglass](https://github.com/rocketlaunchr/showerglass) - A soothing face filter for privacy
|
||||
- [testing-go](https://github.com/rocketlaunchr/testing-go) - Testing framework for unit testing
|
2
limit.go
2
limit.go
@ -1,4 +1,4 @@
|
||||
// Copyright 2020-21 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
|
||||
// Copyright 2020-22 PJ Engineering and Business Solutions Pty. Ltd. All rights reserved.
|
||||
|
||||
package googlesearch
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user