Search.setIndex({"docnames": ["activity-debugging", "activity-explaining", "activity-writing-1", "activity-writing-2", "activity-writing-3", "downloads", "example1", "example2", "index", "plan10", "plan2", "plan3", "plan4", "plan5", "plan9"], "filenames": ["activity-debugging.rst", "activity-explaining.rst", "activity-writing-1.rst", "activity-writing-2.rst", "activity-writing-3.rst", "downloads.rst", "example1.rst", "example2.rst", "index.rst", "plan10.rst", "plan2.rst", "plan3.rst", "plan4.rst", "plan5.rst", "plan9.rst"], "titles": ["Code debugging activity", "Code explaining activity", "Code writing activity part 1", "Code writing activity part 2", "Code writing activity part 3", "You can download all the plans here", "Scrape all the Cottage Inn Pizza locations", "Get news links from faculty webpages", "Learn Web Scraping!", "Plan 10: Store info in a json file", "Plan 1: Get a soup from a URL", "Plan 2: Get a soup from multiple URLs", "Plan 4: Get info from a single tag", "Plan 3: Get info from all tags of a certain type", "Plan 5: Print info"], "terms": {"everi": [0, 13], "week": 0, "new": [0, 8, 11, 12], "cat": 0, "dog": 0, "i": [0, 2, 3, 4, 6, 7, 10, 11, 12, 13, 14], "ann": [0, 13], "arbor": [0, 13], "": [0, 1, 2, 3, 4, 6, 7, 11, 12, 13, 14], "107one": 0, "pet": 0, "The": [0, 2, 3, 4, 8, 10, 11, 12, 13], "below": [0, 1, 6, 7, 11, 12, 13, 14], "suppos": 0, "get": [0, 1, 2, 3, 4, 6, 14], "webpag": [0, 10, 11, 12, 13, 14], "scrape": [0, 1, 2, 3, 4, 7, 10, 11, 13, 14], "text": [0, 1, 6, 12, 13, 14], "titl": 0, "shown": 0, "pictur": [0, 13], "print": [0, 1, 2, 3, 4, 6, 7, 8], "howev": 0, "doesn": 0, "t": [0, 12], "work": 0, "instead": 0, "noth": 0, "can": [0, 1, 2, 3, 4, 6, 7, 8, 12, 13], "you": [0, 1, 2, 3, 4, 6, 7, 10, 11, 12, 13, 14], "fix": 0, "here": [0, 1, 2, 3, 4, 8, 10, 11, 12, 13, 14], "buggi": 0, "1": [0, 1, 3, 4, 6, 8, 12, 13, 14], "soup": [0, 1, 2, 3, 4, 6, 7, 8, 12, 13, 14], "from": [0, 1, 2, 3, 4, 6, 14], "url": [0, 1, 2, 3, 4, 6, 7, 8, 14], "load": [0, 1, 6, 7, 10, 11, 14], "librari": [0, 1, 6, 7, 8, 10, 11, 14], "web": [0, 1, 6, 7, 10, 11, 13, 14], "bs4": [0, 1, 6, 7, 10, 11, 14], "import": [0, 1, 6, 7, 10, 11, 14], "beautifulsoup": [0, 1, 6, 7, 8, 10, 11, 14], "request": [0, 1, 6, 7, 10, 11, 14], "http": [0, 1, 6, 7, 10, 11, 12, 14], "www": [0, 1, 7, 11, 12], "humanesocieti": 0, "org": 0, "petsoftheweek": 0, "r": [0, 1, 6, 7, 10, 11, 14], "content": [0, 1, 6, 7, 10, 11, 14], "html": [0, 1, 6, 7, 10, 11, 13, 14], "parser": [0, 1, 6, 7, 10, 11, 14], "4": [0, 1, 2, 3, 4, 7, 13, 14], "info": [0, 1, 2, 3, 4, 6, 7], "singl": [0, 1, 2, 3, 4, 7, 8, 14], "tag": [0, 2, 3, 4, 6, 7, 8, 14], "first": [0, 7, 10, 12, 13], "certain": [0, 1, 2, 3, 4, 6, 7, 8, 12, 14], "type": [0, 1, 2, 3, 4, 6, 7, 8, 12, 14], "find": [0, 7, 12, 13], "class_": [0, 1, 7, 12, 13], "pt": 0, "cv": 0, "none": 0, "cvplbd": 0, "href": [0, 1, 7, 12, 13], "5": [0, 1, 2, 3, 4, 6, 7, 13], "try": [0, 1, 13], "run": [0, 1, 6, 7, 11], "save": 0, "your": [0, 1, 7, 10, 13], "progress": 0, "2": [0, 1, 2, 4, 7, 10, 13], "multipl": [0, 1, 2, 3, 4, 7, 8, 14], "3": [0, 1, 2, 3, 6], "all": [0, 1, 2, 3, 4, 7, 8, 11, 12, 14], "look": [1, 2, 3, 4, 11], "determin": [1, 11, 12, 13], "what": [1, 2, 3, 4, 6, 7, 12, 13, 14], "doe": 1, "si": [1, 7, 11, 12], "umich": [1, 7, 11, 12], "edu": [1, 7, 11, 12], "peopl": [1, 7, 8, 11, 12], "barbara": [1, 7, 11, 12], "ericson": [1, 2, 3, 4, 7, 11, 12], "univ": 1, "jane": 1, "find_al": [1, 6, 13, 14], "item": [1, 7, 11, 12], "teaser": [1, 7, 12], "more": [1, 6, 7, 12, 13], "collect": [1, 6, 7, 8, 13, 14], "collect_info": [1, 6, 13, 14], "append": [1, 6, 13, 14], "base_url": [1, 7, 11], "end": [1, 7, 11, 13], "p": [1, 12, 13], "write": [1, 6, 8], "down": [1, 6], "best": 1, "guess": 1, "see": [1, 2, 3, 4, 6, 7, 10, 11, 12, 13], "happen": 1, "On": [2, 3, 4], "thi": [2, 3, 4, 6, 7, 12, 13, 14], "page": [2, 3, 4, 8, 10, 11, 12, 13, 14], "complet": [2, 3, 4, 10], "an": [2, 8, 12, 13], "comment": [2, 3, 4, 12, 13], "rate": [2, 3, 4], "my": [2, 3, 4], "professor": [2, 3, 4, 11, 12], "prof": [2, 3, 4], "onei": [2, 3, 4, 7, 11], "them": [2, 3, 4, 6, 10, 12], "both": [2, 3, 4], "have": [2, 3, 4, 10, 11, 14], "same": [2, 3, 4, 11], "layout": [2, 3, 4, 11], "name": [2, 3, 4, 12, 13], "which": [2, 3, 4, 11, 13], "div": [2, 3, 4, 12, 13], "class": [2, 3, 4, 12, 13], "comments__styledcom": [2, 3, 4], "dzzyvm": [2, 3, 4], "0": [2, 3, 4], "dvnrbr": [2, 3, 4], "like": [2, 3, 4, 8, 10, 14], "when": [2, 3, 4, 6, 13], "inspect": [2, 3, 4, 12, 13], "choos": [2, 3, 12], "follow": [2, 3], "us": [2, 3, 14], "put": [2, 3, 10, 12, 13], "correct": [2, 3, 4, 10, 12, 13, 14], "order": [2, 3, 10, 12, 13], "second": [3, 12, 13], "final": 4, "assembl": 4, "now": 4, "ve": [4, 12, 13, 14], "fill": [4, 10, 13, 14], "blank": 4, "let": [6, 7], "sai": [6, 7], "want": [6, 7, 10, 11, 12, 13, 14], "make": 6, "list": 6, "go": [6, 10, 11, 12, 13, 14], "websit": [6, 10], "turn": 6, "out": [6, 12, 13], "ar": [6, 11, 12, 13], "lot": 6, "If": [6, 11, 12, 14], "onli": [6, 14], "could": 6, "littl": 6, "python": 6, "easili": 6, "It": [6, 10, 12, 13, 14], "code": [6, 7, 10, 11, 12, 13, 14], "probabl": 6, "seem": 6, "bit": 6, "complic": 6, "In": [6, 8, 10, 11, 12, 13], "ebook": 6, "we": [6, 7, 8, 10, 11, 12, 13], "break": 6, "few": 6, "common": [6, 8, 11, 14], "plan": [6, 7], "exampl": 6, "made": [6, 7, 13], "up": [6, 7, 13], "three": [6, 7], "click": [6, 7, 10, 11, 12, 13, 14], "each": [6, 7], "learn": [6, 7], "pizzatown": 6, "com": [6, 10, 14], "pick": [6, 10, 14], "h3": [6, 12, 13, 14], "articl": 7, "favorit": 7, "umsi": [7, 11], "But": [7, 12], "through": 7, "gather": 7, "those": [7, 13], "would": [7, 8, 11, 13], "pain": 7, "fortun": 7, "do": [7, 12, 13, 14], "task": 7, "about": [7, 11], "steve": [7, 11], "paul": [7, 11], "resnick": [7, 11], "internet": 8, "full": [8, 12], "inform": [8, 10, 11, 12, 13, 14], "copi": 8, "past": 8, "take": 8, "forev": 8, "ll": 8, "explor": 8, "easier": 8, "wai": [8, 13], "process": 8, "These": 8, "repres": 8, "most": [8, 11], "pattern": 8, "were": 8, "creat": [8, 12, 13], "after": 8, "anaylsi": 8, "100": 8, "file": 8, "github": 8, "well": 8, "interview": 8, "who": 8, "job": 8, "cottag": [8, 10, 13, 14], "inn": [8, 10, 13, 14], "pizza": [8, 13], "locat": [8, 10, 13, 14], "link": [8, 11, 12, 13], "faculti": [8, 11, 12, 14], "store": 8, "json": 8, "activ": 8, "part": [8, 11, 12, 13], "debug": 8, "explain": 8, "step": 10, "To": [10, 13], "someth": 10, "call": 10, "goal": [10, 11, 12, 13, 14], "one": [10, 12, 13, 14], "cottageinn": [10, 14], "replac": 10, "A": [10, 13], "address": 10, "browser": [10, 12, 13], "should": [10, 13, 14], "start": [10, 12, 13], "surround": [10, 13], "quot": [10, 12], "p2": 10, "univers": 10, "michigan": 10, "wikipedia": 10, "rememb": [10, 13, 14], "around": [10, 12], "incorrect": [10, 13, 14], "back": [10, 11, 12, 13, 14], "sometim": 11, "For": [11, 13], "gener": 11, "design": 11, "interest": 11, "mutlipl": 11, "dr": 11, "barb": 11, "Their": 11, "thing": [11, 12, 13], "thei": 11, "differ": 11, "also": 11, "recent": 11, "dean": 11, "tom": 11, "finholt": 11, "chang": 11, "thoma": 11, "re": 11, "right": [11, 12], "mayb": 12, "just": [12, 14], "piec": 12, "stori": 12, "function": [12, 13], "sinc": 12, "its": [12, 13], "onc": [12, 13], "found": [12, 13], "two": [12, 13], "descript": [12, 13], "slot": [12, 13, 14], "some": [12, 13], "span": [12, 13], "style": [12, 13], "x5e72": [12, 13], "css4z": [12, 13], "One": 12, "hold": 12, "north": 12, "quad": 12, "dine": 12, "hall": 12, "p4": 12, "No": [12, 13], "rel": 12, "check": 12, "imag": [12, 13], "subgoal": 12, "ha": [12, 13], "need": [12, 13], "block": 12, "announc": 12, "almost": 12, "don": 12, "forget": 12, "good": [12, 13], "anoth": 12, "highlight": 12, "help": 12, "figur": 13, "great": 13, "behind": 13, "blue": 13, "rectangl": 13, "between": 13, "broadwai": 13, "st": 13, "p5": 13, "todai": 13, "menu": 13, "h2": 13, "menuitem": 13, "menutitl": 13, "describ": 13, "our": 13, "That": 13, "specif": 13, "veri": [13, 14], "close": 13, "actual": 13, "headlin": 13, "alreadi": 13, "font": 13, "weight": 13, "400": 13, "With": 13, "chandeli": 13, "dramat": 13, "vault": 13, "ceil": 13, "contain": 13, "attribut": 13, "p9": 14, "9": 14, "___________": 14, "variabl": 14, "goe": 14, "depend": 14, "abov": 14}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"code": [0, 1, 2, 3, 4, 8], "debug": 0, "activ": [0, 1, 2, 3, 4], "link": [0, 1, 2, 3, 4, 7], "plan": [0, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14], "explain": 1, "relev": 1, "tag": [1, 12, 13], "write": [2, 3, 4], "part": [2, 3, 4], "1": [2, 5, 10], "2": [3, 5, 8, 11], "3": [4, 5, 8, 13], "you": [5, 8], "can": 5, "download": [5, 8], "all": [5, 6, 13], "here": 5, "4": [5, 8, 12], "5": [5, 8, 14], "6": 5, "9": [5, 8], "10": [5, 8, 9], "scrape": [6, 8], "cottag": 6, "inn": 6, "pizza": 6, "locat": 6, "get": [7, 8, 10, 11, 12, 13], "new": 7, "from": [7, 8, 10, 11, 12, 13], "faculti": 7, "webpag": [7, 8], "learn": 8, "web": 8, "what": 8, "i": 8, "how": [8, 10, 11, 12, 13], "thi": [8, 10, 11], "ebook": 8, "work": 8, "dure": 8, "lesson": 8, "us": [8, 10, 11, 12, 13], "real": 8, "profession": 8, "two": 8, "exampl": [8, 10, 11, 12, 13, 14], "extract": 8, "info": [8, 9, 12, 13, 14], "do": 8, "someth": 8, "put": 8, "togeth": 8, "store": 9, "json": 9, "file": 9, "outlin": 9, "soup": [10, 11], "url": [10, 11], "when": [10, 11, 12], "exercis": [10, 11, 12, 13, 14], "multipl": 11, "singl": 12, "certain": 13, "type": 13, "look": 13, "closer": 13, "print": 14}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 57}, "alltitles": {"Code debugging activity": [[0, "code-debugging-activity"]], "Links to plans": [[0, null], [1, null], [2, null], [3, null], [4, null]], "Code explaining activity": [[1, "code-explaining-activity"]], "Relevant tags": [[1, "relevant-tags"]], "Code writing activity part 1": [[2, "code-writing-activity-part-1"]], "Code writing activity part 2": [[3, "code-writing-activity-part-2"]], "Code writing activity part 3": [[4, "code-writing-activity-part-3"]], "You can download all the plans here": [[5, "you-can-download-all-the-plans-here"]], "Plan 1": [[5, "plan-1"]], "Plan 2": [[5, "plan-2"]], "Plan 3": [[5, "plan-3"]], "Plan 4": [[5, "plan-4"]], "Plan 5": [[5, "plan-5"]], "Plan 6": [[5, "plan-6"]], "Plan 9": [[5, "plan-9"]], "Plan 10": [[5, "plan-10"]], "Scrape all the Cottage Inn Pizza locations": [[6, "scrape-all-the-cottage-inn-pizza-locations"]], "Get news links from faculty webpages": [[7, "get-news-links-from-faculty-webpages"]], "Learn Web Scraping!": [[8, "learn-web-scraping"]], "What is web scraping?": [[8, "what-is-web-scraping"]], "How this ebook works": [[8, "how-this-ebook-works"]], "During this lesson, you will learn code plans used by real professionals.": [[8, null]], "Two scraping examples": [[8, "two-scraping-examples"]], "Plans 2-3: Get the webpage": [[8, "plans-2-3-get-the-webpage"]], "Plans 4-5: Extract info from the webpage": [[8, "plans-4-5-extract-info-from-the-webpage"]], "Plans 9-10: Do something with the info": [[8, "plans-9-10-do-something-with-the-info"]], "Putting it together": [[8, "putting-it-together"]], "Download the plans": [[8, "download-the-plans"]], "Plan 10: Store info in a json file": [[9, "plan-10-store-info-in-a-json-file"]], "Plan 10: Outline": [[9, "plan-10-outline"]], "Plan 1: Get a soup from a URL": [[10, "plan-1-get-a-soup-from-a-url"]], "Plan 1: Example": [[10, "plan-1-example"]], "Plan 1: When to use this plan": [[10, "plan-1-when-to-use-this-plan"]], "Plan 1: How to use this plan": [[10, "plan-1-how-to-use-this-plan"]], "Plan 1: Exercises": [[10, "plan-1-exercises"]], "Plan 2: Get a soup from multiple URLs": [[11, "plan-2-get-a-soup-from-multiple-urls"]], "Plan 2: Example": [[11, "plan-2-example"]], "Plan 2: When to use this plan": [[11, "plan-2-when-to-use-this-plan"]], "Plan 2: How to use this plan": [[11, "plan-2-how-to-use-this-plan"]], "Plan 2: Exercises": [[11, "plan-2-exercises"]], "Plan 4: Get info from a single tag": [[12, "plan-4-get-info-from-a-single-tag"]], "Plan 4: Example": [[12, "plan-4-example"]], "Plan 4: When to use it": [[12, "plan-4-when-to-use-it"]], "Plan 4: How to use it": [[12, "plan-4-how-to-use-it"]], "Plan 4: Exercises": [[12, "plan-4-exercises"]], "Plan 3: Get info from all tags of a certain type": [[13, "plan-3-get-info-from-all-tags-of-a-certain-type"]], "Looking closer at a tag": [[13, "looking-closer-at-a-tag"]], "Plan 3: Example": [[13, "plan-3-example"]], "Plan 3: How to use it": [[13, "plan-3-how-to-use-it"]], "Plan 3: Exercises": [[13, "plan-3-exercises"]], "Plan 5: Print info": [[14, "plan-5-print-info"]], "Plan 5: Example": [[14, "plan-5-example"]], "Plan 5: Exercises": [[14, "plan-5-exercises"]]}, "indexentries": {}})