document for avalon
parent
18a3af4a0a
commit
633e0fe834
@ -0,0 +1,14 @@
|
||||
var name=xpath("//h1[@class='entry-title public']/strong/a/text()")
|
||||
var readme=xpath("//div[@id='readme']/tidyText()")
|
||||
var star=xpath("//ul[@class='pagehead-actions']/li[1]//a[@class='social-count js-social-count']/text()")
|
||||
var fork=xpath("//ul[@class='pagehead-actions']/li[2]//a[@class='social-count']/text()")
|
||||
var url=page.getUrl().toString()
|
||||
if (name!=null){
|
||||
println(name)
|
||||
println(readme)
|
||||
println(star)
|
||||
println(url)
|
||||
}
|
||||
|
||||
urls("(https://github\\.com/\\w+/\\w+)")
|
||||
urls("(https://github\\.com/\\w+)")
|
@ -0,0 +1,10 @@
|
||||
name= xpath "//h1[@class='entry-title public']/strong/a/text()"
|
||||
readme = xpath "//div[@id='readme']/tidyText()"
|
||||
star = xpath "//ul[@class='pagehead-actions']/li[1]//a[@class='social-count js-social-count']/text()"
|
||||
fork = xpath "//ul[@class='pagehead-actions']/li[2]//a[@class='social-count']/text()"
|
||||
url=$page.getUrl().toString()
|
||||
|
||||
puts name,readme,star,fork,url unless name==nil
|
||||
|
||||
urls "(https://github\\.com/\\w+/\\w+)"
|
||||
urls "(https://github\\.com/\\w+)"
|
Loading…
Reference in New Issue