Skip to content

Commit 511a884

Browse files
authored
Add breaks between consecutive headers (#429)
1 parent e925303 commit 511a884

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/academy/api_scraping.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ A GraphQL API works differently from a standard API. All requests are `POST` req
2929
3030
## [](#advantages) Advantages of API scraping
3131

32+
<br/>
33+
3234
### 1. More reliable
3335

3436
Since the data is coming directly from the site's API, as opposed from the parsing of HTML content based on CSS selectors, it can be relied on more, as it is less likely to change. Typically, websites change their APIs much less frequently than they change the structure/selectors of their pages.
@@ -47,6 +49,8 @@ Depending on the website, sending large amounts of requests to their pages could
4749

4850
## [](#disadvantages) Disdvantages of API Scraping
4951

52+
<br/>
53+
5054
### 1. Sometimes requires special tokens
5155

5256
Many APIs will require the session cookie, an API key, or some other special value to be included within the header of the request in order to receive any data back. For certain projects, this can be a challenge.
@@ -59,6 +63,8 @@ For complex APIs that require certain headers and/or payloads in order to make a
5963

6064
## [](#extra-challenges) Extra challenges
6165

66+
<br/>
67+
6268
### 1. Different data formats
6369

6470
APIs come in all different shapes and sizes. That means every API will vary in not only the quality of the data that it returns, but also that format that it is in. The two most common formats are JSON and HTML.

0 commit comments

Comments
 (0)