Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## We set the global counter and global data
- SET NEWGVAR "CTR" "1"
- SET NEWGVAR "GDATA" ""
- ## We only want to do this if the GDATA is empty (a.k.a just initialized or banned)
- IF "<GDATA>" EqualTo ""
- ## Now whenever we want to pull the data we do this (pastebin formatted properly)
- REQUEST GET "https://pastebin.com/raw/ABCDEFGHIJ"
- ## Now thanks to the CSS Selector we take the correct data line
- PARSE SOURCE CSS "p:nth-child(<CTR>)" "innerHTML" -> VAR "CMB"
- SET GVAR "GDATA" "<CMB>"
- ## Increase the counter
- FUNCTION COMPUTE "<CTR>+1" -> VAR "NEWCTR"
- SET GVAR "CTR" "<NEWCTR>"
- ENDIF
- ## When that data line is banned just empty out the global variable
- ## SET GVAR "GDATA" ""
- ## so that on the next sweep it will grab the next data line :D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement