Karim shoair commited on
Commit ·
3456843
1
Parent(s): 3524ca2
docs: updating `Interactive shell` page and some corrections
Browse files
docs/cli/interactive-shell.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
# Scrapling Interactive Shell Guide
|
| 2 |
|
| 3 |
-
<script src="https://asciinema.org/a/736339.js" id="asciicast-736339" async data-autoplay="1" data-loop="1" data-cols="225" data-rows="40" data-start-at="00:06" data-speed="1.5"></script>
|
| 4 |
|
| 5 |
**Powerful Web Scraping REPL for Developers and Data Scientists**
|
| 6 |
|
| 7 |
The Scrapling Interactive Shell is an enhanced IPython-based environment designed specifically for Web Scraping tasks. It provides instant access to all Scrapling features, clever shortcuts, automatic page management, and advanced tools, such as conversion of the curl command.
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
|
| 17 |
## Why use the Interactive Shell?
|
|
@@ -174,7 +174,7 @@ The shell inherits all IPython capabilities:
|
|
| 174 |
>>> %save filename.py 1-10 # Save commands 1-10 to file
|
| 175 |
|
| 176 |
>>> # Tab completion works everywhere
|
| 177 |
-
>>> page.c<TAB> # Shows: css,
|
| 178 |
>>> Fetcher.<TAB> # Shows all Fetcher methods
|
| 179 |
|
| 180 |
>>> # Object inspection
|
|
|
|
| 1 |
# Scrapling Interactive Shell Guide
|
| 2 |
|
| 3 |
+
<script src="https://asciinema.org/a/736339.js" id="asciicast-736339" async data-autoplay="1" data-loop="1" data-cols="225" data-rows="40" data-start-at="00:06" data-speed="1.5" data-theme="tango"></script>
|
| 4 |
|
| 5 |
**Powerful Web Scraping REPL for Developers and Data Scientists**
|
| 6 |
|
| 7 |
The Scrapling Interactive Shell is an enhanced IPython-based environment designed specifically for Web Scraping tasks. It provides instant access to all Scrapling features, clever shortcuts, automatic page management, and advanced tools, such as conversion of the curl command.
|
| 8 |
|
| 9 |
+
!!! success "Prerequisites"
|
| 10 |
+
|
| 11 |
+
1. You've completed or read the [Fetchers basics](../fetching/choosing.md) page to understand what the [Response object](../fetching/choosing.md#response-object) is and which fetcher to use.
|
| 12 |
+
2. You've completed or read the [Querying elements](../parsing/selection.md) page to understand how to find/extract elements from the [Selector](../parsing/main_classes.md#selector)/[Response](../fetching/choosing.md#response-object) object.
|
| 13 |
+
3. You've completed or read the [Main classes](../parsing/main_classes.md) page to know what properties/methods the [Response](../fetching/choosing.md#response-object) class is inheriting from the [Selector](../parsing/main_classes.md#selector) class.
|
| 14 |
+
4. You've completed or read at least one page from the fetchers section to use here for requests: [HTTP requests](../fetching/static.md), [Dynamic websites](../fetching/dynamic.md), or [Dynamic websites with hard protections](../fetching/stealthy.md).
|
| 15 |
|
| 16 |
|
| 17 |
## Why use the Interactive Shell?
|
|
|
|
| 174 |
>>> %save filename.py 1-10 # Save commands 1-10 to file
|
| 175 |
|
| 176 |
>>> # Tab completion works everywhere
|
| 177 |
+
>>> page.c<TAB> # Shows: css, cookies, headers, etc.
|
| 178 |
>>> Fetcher.<TAB> # Shows all Fetcher methods
|
| 179 |
|
| 180 |
>>> # Object inspection
|