Skip to content

Commit

Permalink
feat: Python course lesson about getting links (#1214)
Browse files Browse the repository at this point in the history
I dared to include my favorite gif that dates back to ancient Apiary
times with @netmilk.
  • Loading branch information
honzajavorek authored Oct 10, 2024
2 parents 2b84dae + 6ca5b1d commit 1ab71bf
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ Great! Only if we didn't overlook an important pitfall called [floating-point er
These errors are small and usually don't matter, but sometimes they can add up and cause unpleasant discrepancies. That's why it's typically best to avoid `float()` when working with money. Let's instead use Python's built-in [`Decimal()`](https://docs.python.org/3/library/decimal.html) type:

```py
from decimal import Decimal
import httpx
from bs4 import BeautifulSoup
from decimal import Decimal

url = "https://warehouse-theme-metal.myshopify.com/collections/sales"
response = httpx.get(url)
Expand Down Expand Up @@ -323,8 +323,8 @@ Hints:

```py
import httpx
from datetime import datetime
from bs4 import BeautifulSoup
from datetime import datetime

url = "https://www.theguardian.com/sport/formulaone"
response = httpx.get(url)
Expand Down
Loading

0 comments on commit 1ab71bf

Please sign in to comment.