<jupyter_start><jupyter_text>Week 1 OverviewAs explained in the [*Before week 1* notebook](https://nbviewer.jupyter.org/github/SocialComplexityLab/socialgraphs2020/blob/master/lectures/How_To_Take_This_Class.ipynb), each week of this class is an IPython notebook like this one. **_In order to follow the class, you simply start reading from the top_**, following the instructions.**Hint**: And you can ask me - or any of the friendly Teaching Assistants - for help at any point if you get stuck! Intro videoBelow is today's informal intro video, tying everything together and making each and everyone of you feel welcome and loved!<jupyter_code># sune's informal intro
from IPython.display import YouTubeVideo
YouTubeVideo("sC1DXWWUSkI",width=800, height=450)
# link: https://www.youtube.com/watch?v=sC1DXWWUSkI<jupyter_output><empty_output><jupyter_text>TodayThis first lecture will go over a few different topics to get you started * As the zero'th item. Make sure that you're on top of Python. If you feel you need to refresh. **PLEASE GO TO THE** [Python refresher Notebook](https://nbviewer.jupyter.org/github/SocialComplexityLab/socialgraphs2020/blob/master/lectures/PythonBootcamp.ipynb) and work through it before proceeding.Ok. And now for the actual lecture* First, we talk a bit about APIs and how they work.* Next we'll dip our toes in the waters of Network Science, with a bit of lecturing and reading.* Thirdly, and finally, we'll be getting our hands dirty getting to know the awesome Network Analysis package `NetworkX`.  Part 1: What is an API?As a little check that you're on top of Python, let's get started with a quick overview of APIs. And don't worry, the work you do here will be relevant later, I promise.> > **_Video lecture_**: Click below to watch it on YouTube.> **NOTE**: That this video is made for Python 2. There are a few things that won't work in Python 3. To help smooth things over until I update the video, **[here](https://github.com/SocialComplexityLab/socialgraphs2020/blob/master/files/API_check.ipynb)** is an Python3 version of the notebook used in the video to help you out with the changes.<jupyter_code>YouTubeVideo("9l5zOfh0CRo",width=800, height=450)
# link: https://www.youtube.com/watch?v=9l5zOfh0CRo<jupyter_output><empty_output><jupyter_text>It's time for you to get to work. Take a look at the two texts below - just to get a sense of a more technical description of how APIs wor.Again, this is a Python 2 video, so small changes may apply. This video will be updated soon. Hint: **[Here](https://github.com/SocialComplexityLab/socialgraphs2020/blob/master/files/API_check.ipynb)** is an Python3 version of the notebook used in the video that you can work from.> _Reading_ (just skim): [Wikipedia page on APIs](https://en.wikipedia.org/wiki/Web_API)  > _Reading_ (just skim): [Wikipedia page on REST for web services](https://en.wikipedia.org/wiki/Representational_state_transferApplied_to_web_services)>  > *Exercise*: > * Explain in your own words: What is the the difference between the html page and the wiki-source?> * What are the various parameters you can set for a query of the wikipedia api?> * Write your own little `notebook` to download wikipedia pages based on the video above. Download the source for your 4 favorite wikipedia pages.  Part 2: Basic description of networksNow let's get to some some lecturing. I love networks, so I'll take some time time today to tell you about them.> **_Video Lecture_**. Start by watching the "History of Networks" below<jupyter_code>from IPython.display import YouTubeVideo
YouTubeVideo("qjM9yMarl70",width=800, height=450)
#link https://www.youtube.com/watch?v=qjM9yMarl70<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08223240765705042, 'fraction_numerical': 0.01563763817740631, 'mean_word_length': 5.298811544991511, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 24, 'https://': 9, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '48334', 'license': 'MIT', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1036, 'n_words': 469, 'path': 'lectures/Week1.ipynb', 'repo_name': 'simoneengelbr/socialgraphs2020', 'size': '3709'}