theforgotten69 / goinsta Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ahmdrz/goinsta
Unofficial Instagram API written in Golang
License: MIT License
This project forked from ahmdrz/goinsta
Unofficial Instagram API written in Golang
License: MIT License
// Sync updates account information
func (account *Account) Sync() error {
insta := account.inst
data, err := insta.prepareData()
if err != nil {
return err
}
body, err := insta.sendRequest(&reqOptions{
Endpoint: urlCurrentUser,
Query: generateSignature(data),
IsPost: false,
})
if err == nil {
resp := profResp{}
err = json.Unmarshal(body, &resp)
if err == nil {
*account = resp.Account
account.inst = insta
}
}
return err
}
Change IsPost true to false line 84 in account.go
and thanks for upload fix in this fork :)
https://github.com/TheForgotten69/goinsta/blob/master/media.go#L1277 returns 400 errors.
it looks like this fork is not going to be merged to main repo unfortunately. so it makes sense to update the README imho
i tried example file of uploadPhoto, but got error
invalid status code, result: 403 Forbidden with body {"message":"login_required","status":"fail"}
go version go1.13.4 windows/amd64
I used this fork
package main
import (
"log"
"github.com/TheForgotten69/goinsta/v2"
)
func main() {
insta := goinsta.New("******", "*******")
log.Printf("logged in as %s \n", insta.Account.Username)
insta.Export("~/.goinsta")
}
got this error when running it
$> ./test ✔ 6402 20:10:10
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x1295d60]
goroutine 1 [running]:
main.main()
/Users/hadifarnoud/playground/instapy-docker/test.go:11 +0x60
can you please update the README? I want to use goinsta to block fake followers. some nasty people keep buying us fake followers.
Is this fork meant to be maintained?
I analyzed the web traffic from the latest android app and noticed the login procedure is vastly different (only makes a single stand-alone call to /login
) from the shenanigans that are going on in the login procedure here. I am looking to create a patch, but should I make a pull request here or create my own fork?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.