Advertisement
lux600

Untitled

Nov 10th, 2020
548
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## We set the global counter and global data
  2. SET NEWGVAR "CTR" "1"
  3. SET NEWGVAR "GDATA" ""
  4.  
  5. ## We only want to do this if the GDATA is empty (a.k.a just initialized or banned)
  6. IF "<GDATA>" EqualTo ""
  7. ## Now whenever we want to pull the data we do this (pastebin formatted properly)
  8. REQUEST GET "https://pastebin.com/raw/ABCDEFGHIJ"
  9. ## Now thanks to the CSS Selector we take the correct data line
  10. PARSE SOURCE CSS "p:nth-child(<CTR>)" "innerHTML" -> VAR "CMB"
  11. SET GVAR "GDATA" "<CMB>"
  12.  
  13. ## Increase the counter
  14. FUNCTION COMPUTE "<CTR>+1" -> VAR "NEWCTR"
  15. SET GVAR "CTR" "<NEWCTR>"
  16.  
  17. ENDIF
  18.  
  19. ## When that data line is banned just empty out the global variable
  20. ## SET GVAR "GDATA" ""
  21. ## so that on the next sweep it will grab the next data line :D
Advertisement
RAW Paste Data Copied
Advertisement