expect result:
[
{
"contentData":"1 \u0e21\u0e01\u0e23\u0e32\u0e04\u0e21 ",
"historyData":"
\u0e27\u0e31\u0e19\u0e02\u0e36\u0e49\u0e19\u0e1b\u0e35\u0e43\u0e2b\u0e21\u0e48\u00a0
\u0e27\u0e31\u0e19\u0e2b\u0e22\u0e38\u0e14\u0e23\u0e32\u0e0a\u0e01\u0e32\u0e23",
"id":1
},
{"contentData":"\u0
package main
import (
"log"
"net/http"
"time"
"github.com/PuerkitoBio/goquery"
"gopkg.in/mgo.v2"
//"gopkg.in/mgo.v2"
)
type Data struct {
Name string `json:"name" bson:"name"`
Away string `json:"away" bson:"away"`
Pop int `json:"pop" bson:"pop"`
CreatedAt time.Time `bson:"created
I don't know get Title insert to mongo if it is solution your
Full code :
package main
import (
"fmt"
"log"
"net/http"
"gopkg.in/mgo.v2"
"github.com/PuerkitoBio/goquery"
"time"
)
type Data struct{
Name string ` bson:"name"`
Away string ` bson:"away"`
CreatedAt time.Time `bson:"createdAt"`
}
fun
My code:
session.SetMode(mgo.Monotonic, true)
d:= session.DB("api").C("api")
doc := Data{
Name: title,
Away: band,
}
err = d.Insert(doc)
json to expect
[
{
"contentData": "",
"historyData": " ",
},
{
},
]
--
You received this message because you are subscrib
I want to get data from html insert to database for data to want are stone
cold
Contents
https://en.wikipedia.org/wiki/History_of_England#Prehistory>">1 Prehistory
https://en.wikipedia.org/wiki/History_of_England#Stone_Age>">1.1 Stone Age
https://en.wikipedia.org/wiki/History_of_England#Later_P
I will pratice web scraping get data from website insert to database i
don't know solution
เมื่อ วันอังคารที่ 8 มกราคม ค.ศ. 2019 16 นาฬิกา 57 นาที 36 วินาที UTC+7,
pdbw...@gmail.com เขียนว่า:
>
> [image: Screen Shot 2019-01-08 at 4.57.27 PM.png]
>
> how to get data https://uinames.com/ Pictur
[image: Screen Shot 2019-01-08 at 4.57.27 PM.png]
how to get data https://uinames.com/ Picture and name insert to database
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
THANK YOU
เมื่อ วันอังคารที่ 8 มกราคม ค.ศ. 2019 14 นาฬิกา 25 นาที 13 วินาที UTC+7,
Tamás Gulácsi เขียนว่า:
>
> c[0].Name is not the same as c.Name[0].
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop rece
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
)
type coinsData struct {
Name string `json:"name"`
Photo string `json:"photo"`
}
func main() {
resp, err := http.Get("http://uinames.com/api/?ext&amount=25";)
if err != nil {
log.Fatal(err
type Members struct {
slug string `json:"slug"`
}
type data struct {
Members Members //`json:"members"`
}
func main() {
resp, err := http.Get(
"https://gist.githubusercontent.com/DQIJAO/e14c64ea610688e70228a9fb8c649b2c/raw/6cccd444c1ef65411aa3662b112634996b837414/bnk48.json";
)
10 matches
Mail list logo