This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py | |
index bba5dcc..dc23175 100755 | |
--- a/coursera/coursera_dl.py | |
+++ b/coursera/coursera_dl.py | |
@@ -36,12 +36,16 @@ import tempfile | |
import time | |
import urllib | |
import urllib2 | |
+import pdb | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Button | |
require 'mechanize' | |
def get_all_categories | |
a= Mechanize.new | |
linkdet=[] | |
page = a.get("https://www.buttonlovers.com/storefrontCommerce/categorybrowse.do?category_name=Buttons&path=Imported%2f%2f%2f%2fSlimline%E2%84%A2¤tPage=1&numResults=48") | |
cats = page.links_with(:href=>/.*subcategory.*numResults/) | |
cats.each do |cat| |