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

似乎无法得到渲染数据 #973

Closed
mumodenan opened this issue Nov 9, 2023 · 3 comments
Closed

似乎无法得到渲染数据 #973

mumodenan opened this issue Nov 9, 2023 · 3 comments
Labels
question Questions related to rod

Comments

@mumodenan
Copy link

mumodenan commented Nov 9, 2023

正常curl 可以得到文本数据, 通过渲染反而丢失了

package main

import (
	"fmt"
	"os"
	"time"
	"github.com/go-rod/rod"
)

func main() {
	b := rod.New().ControlURL("ws://127.0.0.1:9222/devtools/browser/6cd8b2a3-ed71-42aa-910b-e554015f772b").MustConnect()
	page := b.MustPage("https://wenku.baidu.com/view/98593fe25ff7ba0d4a7302768e9951e79b896989.html?fr=hp_Database&_wkts_=1699522656597&needWelcomeRecommand=1")
	page = page.MustWaitLoad()
	page.MustScreenshot("a.jpg")
	os.Remove("test.html")
	fd, _ := os.Create("test.html")
	html, _ := page.HTML()
	fd.WriteString(html)
	page.Close()

}
`

Rod Version:  v0.114.2
@mumodenan mumodenan added the question Questions related to rod label Nov 9, 2023
@mumodenan
Copy link
Author

v0.114.2

@ysmood
Copy link
Collaborator

ysmood commented Nov 9, 2023

#322

@ysmood ysmood closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2023
Copy link

github-actions bot commented Nov 9, 2023

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.114.5

Please fix the format of your markdown:

2 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```jsx"]

generated by check-issue

@ysmood ysmood mentioned this issue Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants