Advertisement
Guest User

Untitled

a guest
Dec 1st, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.64 KB | None | 0 0
  1. *** foo_allmusic.vbs
  2. --- foo_allmusic.bak
  3. ***************
  4. *** 29,50 ****
  5.                       Raw = Request(URL)
  6.  
  7.                       Set REr = New RegExp
  8. !                     REr.Pattern = "<div id=""review"">[\s\S]*?author"">([\S ]+)</p>[\s\S]*?text"">([\s\S ]+?)</p>"
  9.  
  10.                       If REr.Test(Raw) = True Then
  11.                           Set R = REr.Execute(Raw)
  12.                           WScript.Echo RemTag(R(0).SubMatches(1)) & vbCrLf & vbCrLf & "Review " & R(0).SubMatches(0)
  13.                           Set R = Nothing
  14.                       Else
  15. !                         Crawl = 1
  16.                       End If
  17.  
  18.                       Set REr = Nothing
  19. !
  20. !                     If Not Crawl = 1 Then
  21. !                         Exit For
  22. !                     End If
  23. !
  24.                   End If
  25.               End If
  26.           Next
  27. --- 29,46 ----
  28.                       Raw = Request(URL)
  29.  
  30.                       Set REr = New RegExp
  31. !                     REr.Pattern = "<div id=""review"">[\s\S]*?author"">([\S ]+)</p>[\s\S]*?text"">([\s\S ]+)</p>"
  32.  
  33.                       If REr.Test(Raw) = True Then
  34.                           Set R = REr.Execute(Raw)
  35.                           WScript.Echo RemTag(R(0).SubMatches(1)) & vbCrLf & vbCrLf & "Review " & R(0).SubMatches(0)
  36.                           Set R = Nothing
  37.                       Else
  38. !                         WScript.Echo "No review was found for: """ & ALBUM & """ by " & match.SubMatches(1)
  39.                       End If
  40.  
  41.                       Set REr = Nothing
  42. !                     Exit For
  43.                   End If
  44.               End If
  45.           Next
  46.  
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement