Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[download fail]: 下载ins的图片报错 #1175

Closed
FongPing opened this issue Nov 29, 2022 · 0 comments · Fixed by #1252
Closed

[download fail]: 下载ins的图片报错 #1175

FongPing opened this issue Nov 29, 2022 · 0 comments · Fixed by #1252
Labels
bug Something isn't working

Comments

@FongPing
Copy link

Website name: name

OS::macOS

Video URL:: url

Stack overflow

error message here

--- FAIL: TestMyDownload/image_test (2.58s)
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0

goroutine 20 [running]:
testing.tRunner.func1.2({0x100c9d480, 0x140002900d8})
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1396 +0x1c8
testing.tRunner.func1()
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1399 +0x378
panic({0x100c9d480, 0x140002900d8})
/Users/gongfangping/sdk/go1.19.3/src/runtime/panic.go:884 +0x204
github.com/iawia002/lux/extractors/instagram.TestMyDownload.func1(0x0?)
/Users/gongfangping/IdeaProjects/lux/extractors/instagram/instagram1_test.go:29 +0xf4
testing.tRunner(0x14000187380, 0x140001930b0)
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1446 +0x10c
created by testing.(*T).Run
/Users/gongfangping/sdk/go1.19.3/src/testing/testing.go:1493 +0x300

Screenshots

none

dataStrings := utils.MatchOneOf(html, window\.__additionalDataLoaded\('graphql',(.*)\);)
if dataStrings == nil || len(dataStrings) < 2 {
return nil, errors.WithStack(extractors.ErrURLParseFailed)
}

现在ins改了?正则匹配不了,删了这块,程序也能正常运行
Additional context

none

@FongPing FongPing added the bug Something isn't working label Nov 29, 2022
@FongPing FongPing changed the title [download fail]: the website name [download fail]: 下载ins的图片报错 Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant