instagram: new extraction method

new extraction method first tries to fetch content directly from instagram graphql API, fallback to html embed page. in case every method fail, rely on 3rd party
This commit is contained in:
stefanodvx 2025-04-23 18:52:05 +02:00
parent 1b3c426808
commit 93e964a28b
10 changed files with 494 additions and 110 deletions

3
go.mod
View file

@ -13,6 +13,7 @@ require (
github.com/strukturag/libheif v1.19.7
github.com/u2takey/ffmpeg-go v0.5.0
golang.org/x/image v0.26.0
gopkg.in/yaml.v3 v3.0.1
gorm.io/gorm v1.25.12
)
@ -26,7 +27,6 @@ require (
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
require (
@ -38,6 +38,7 @@ require (
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/pkg/errors v0.9.1
github.com/titanous/json5 v1.0.0
github.com/u2takey/go-utils v0.3.1 // indirect
golang.org/x/text v0.24.0 // indirect
gorm.io/driver/mysql v1.5.7