fix Scrape.Readme

このコミットが含まれているのは:
Arya Kiran 2023-03-21 23:50:39 +05:30
コミット de7d99140b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 842D12BDA50DF120
2個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -57,7 +57,7 @@ func DirView(c *fiber.Ctx) error {
sc := colly.NewCollector(colly.AllowedDomains("github.com"), colly.UserAgent(UserAgent)) sc := colly.NewCollector(colly.AllowedDomains("github.com"), colly.UserAgent(UserAgent))
sc.OnHTML("div#readme", func(e *colly.HTMLElement) { sc.OnHTML("div#readme", func(e *colly.HTMLElement) {
Scrape.Readme = e.ChildText("a[href*='#readme']") Scrape.Readme = e.ChildText("a[href='#readme']")
}) })
sc.OnHTML("div.js-details-container div.Details-content--hidden-not-important", func(e *colly.HTMLElement) { sc.OnHTML("div.js-details-container div.Details-content--hidden-not-important", func(e *colly.HTMLElement) {
e.ForEach("div.js-navigation-item", func(i int, el *colly.HTMLElement) { e.ForEach("div.js-navigation-item", func(i int, el *colly.HTMLElement) {

ファイルの表示

@ -79,7 +79,7 @@ func HandleRepo(c *fiber.Ctx) error {
}) })
}) })
sc.OnHTML("div#readme", func(e *colly.HTMLElement) { sc.OnHTML("div#readme", func(e *colly.HTMLElement) {
Scrape.Readme = e.ChildText("a[href*='#readme']") Scrape.Readme = e.ChildText("a[href='#readme']")
}) })
sc.OnHTML("div.BorderGrid-cell ul.list-style-none", func(e *colly.HTMLElement) { sc.OnHTML("div.BorderGrid-cell ul.list-style-none", func(e *colly.HTMLElement) {
e.ForEach("li.d-inline .d-inline-flex", func(i int, el *colly.HTMLElement) { e.ForEach("li.d-inline .d-inline-flex", func(i int, el *colly.HTMLElement) {