Skip to content

Commit fabb68a

Browse files
committed
pup
1 parent fdeed28 commit fabb68a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Scripts/auto.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ if ($IsWindows)
3232
}
3333
else{
3434
$QuestionContent = ($HTML.Content | pup -p 'head meta[name=\"description\"] attr{content}').Split("`n")
35-
$QuestionTitle = ($HTML.Content | pup -p 'div[class=\"question-title clearfix\"] > h3 text{}').Trim().Split("`n")[1]
36-
$DIFFCULT = ($HTML.Content | pup 'div[class=\"question-info text-info\"] > ul > li:nth-child(3) text{}').Split(":")[2].Trim()
35+
$QuestionTitle = ($HTML.Content | pup -p 'div[class=\"question-title clearfix\"] h3 text{}').Trim().Split("`n")[1]
36+
$DIFFCULT = ($HTML.Content | pup 'div#desktop-side-bar ul li span text{}').Split(":")[2].Trim()
3737
$JSON = $HTML.Content | pup -p 'div[ng-controller=\"AceCtrl as aceCtrl\"] attr{ng-init}'
3838
}
3939
$AUTHOR = $command

0 commit comments

Comments
 (0)