We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdeed28 commit fabb68aCopy full SHA for fabb68a
1 file changed
Scripts/auto.ps1
@@ -32,8 +32,8 @@ if ($IsWindows)
32
}
33
else{
34
$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()
+ $QuestionTitle = ($HTML.Content | pup -p 'div[class=\"question-title clearfix\"] h3 text{}').Trim().Split("`n")[1]
+ $DIFFCULT = ($HTML.Content | pup 'div#desktop-side-bar ul li span text{}').Split(":")[2].Trim()
37
$JSON = $HTML.Content | pup -p 'div[ng-controller=\"AceCtrl as aceCtrl\"] attr{ng-init}'
38
39
$AUTHOR = $command
0 commit comments