Skip to content

invalid request path #83

Description

@seiflotfy

Here is a small piece of code that yields back

<nil> Get "https://reddit.com/r/investing.json?raw_json=1": invalid request :path "r/investing.json?raw_json=1"

every time I run it. Weird thing is that https://reddit.com/r/investing.json?raw_json=1 does exist. Any ideas


import (
	"fmt"
	"time"

	"github.com/turnage/graw/reddit"
)

func main() {
	userAgent := "graw:doc_demo_bot:0.3.1 by /u/datlolbot"
	script, _ := reddit.NewScript(userAgent, time.Second)
	fmt.Println(script.Thread("r/investing"))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions