mirror of
https://github.com/Dvorinka/facr-scraper.git
synced 2026-06-05 04:52:56 +00:00
update
This commit is contained in:
@@ -1163,7 +1163,7 @@ func getLogoBySearch(name string) string {
|
||||
query = name
|
||||
}
|
||||
doSearch := func(q string) (searchAPIResult, bool) {
|
||||
url := fmt.Sprintf("http://localhost:8686/club/search?q=%s", neturl.QueryEscape(q))
|
||||
url := fmt.Sprintf("http://0.0.0.0:8686/club/search?q=%s", neturl.QueryEscape(q))
|
||||
resp, err := client.Get(url)
|
||||
if err != nil {
|
||||
return searchAPIResult{}, false
|
||||
@@ -1679,8 +1679,8 @@ func main() {
|
||||
http.Redirect(w, r, "/club/football/"+vars["id"], http.StatusMovedPermanently)
|
||||
}).Methods("GET")
|
||||
r.HandleFunc("/", docsHandler)
|
||||
port := ":8686"
|
||||
fmt.Printf("Server running on http://localhost%s\n", port)
|
||||
port := "0.0.0.0:8686"
|
||||
fmt.Printf("Server running on http://%s\n", port)
|
||||
log.Fatal(http.ListenAndServe(port, r))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user