Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Pseudo Code:
  2.  
  3. int seasonNo = 1
  4. int episodeNo = 1
  5.  
  6. while ("http://officequotes.net/no" + seasonNo + "-01.php" != 404Error)
  7. {
  8. string seasonURL = "http://officequotes.net/no" + seasonNo
  9.  
  10. #I think it's something like this to format the #s but not sure "{:02d}".format(episodeNo)
  11. while(seasonURL + "-" Format2Digits(episodeNo) + ".php" != 404Error){
  12. #.. something like this: soup.findAll("div", {"class": "quote"})
  13. foreach(quote in Page){
  14. AddToCSVFile(seasonNo + "," + episodeNo + "," + character/actor + "," + quote)
  15. }
  16. episodeNo ++
  17. }
  18.  
  19. seasonNo++
  20. episodeNo = 1
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement