Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pseudo Code:
- int seasonNo = 1
- int episodeNo = 1
- while ("http://officequotes.net/no" + seasonNo + "-01.php" != 404Error)
- {
- string seasonURL = "http://officequotes.net/no" + seasonNo
- #I think it's something like this to format the #s but not sure "{:02d}".format(episodeNo)
- while(seasonURL + "-" Format2Digits(episodeNo) + ".php" != 404Error){
- #.. something like this: soup.findAll("div", {"class": "quote"})
- foreach(quote in Page){
- AddToCSVFile(seasonNo + "," + episodeNo + "," + character/actor + "," + quote)
- }
- episodeNo ++
- }
- seasonNo++
- episodeNo = 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement