In [4]:
import requests
from bs4 import BeautifulSoup

res = requests.get("")
<Response [200]>
In [10]:
soup = BeautifulSoup(res.text)
In [13]:
'Welcome Muggles'
In [34]:
a_tags = soup.find_all('a')
In [30]:
for tag in a_tags:
In [43]:
def gather_homepage_links():
    import requests
    from bs4 import BeautifulSoup
    link_names = []
    response = requests.get("")
    soup = BeautifulSoup(response.text)
    for tag in soup.find_all('a'):
    return link_names
In [44]:
['index.html', 'index.html', 'blog.html', 'about.html', '', '#collapseExample', '#collapseExample']
In [46]:
homepage_links = gather_homepage_links() 
In [47]:
blog_suffix = homepage_links[2]
blog_page = requests.get("" + blog_suffix)
<Response [200]>
In [49]:
blog_html = BeautifulSoup(blog_page.text)
blog_links = []
for tag in blog_html.find_all('a'):
In [50]:

welcome to day 20 and 21 stalkers.

what's all of that up there?

believe or not, I wrote all of that code because I was frustrated. I was frustrated that I can't just decide how to build a fancy shmancy website and build it as I go.

Websites must be planned out. This probably seems obvious to you but to me, coding has always been this thing I can just do and when I run into obstacles I kind of figure out my way over, under, or around them. Maybe through them, it's all about perspective you see.

However with websites, you have to know what your website is going to look like BEFORE you actually code it up.

That's craziness. I coded all of the above because I felt like coding without direction and my favorite kind of coding is scraping.

What's the real problem?

The real problem is I have spent years on learning how to code in Python, especially web scraping (it's my pb and jam) but I have NOT spent years developing websites which means I have done everything I can to avoid planning when it comes to programming.

I like the doing. Not the planning and doing.

Not a huge problem though. Pretty funny realization to have. It's not truly something I didn't know to be honest, but it was one of those things I knew and didn't want fully manifest what it meant, you know?

Oh, you know what I'm talking about.

Yesterday I spent a good amount of time working on Dataquest. Learning some pretty neat things on there. Messing with the pandas library. Good stuff.

Today I sat down to mess with my website and had the above realization that I'm not at a place where I can simply hack together a website. The code above? It's not a perfect webscrape by any means but I have enough experience writing python scripts and building them out into fully fledged...scripts/programs/code..stuff.

It is a little inspiring to know that I have a preference coding with Python to making websites because I can slap together a python program decently enough and I cannot slap together a website. I do remember when I couldn't do any slapping of any kind. Solely knowing that is kind of cool right?