Skip to content

Commit 3e67747

Browse files
Update README
1 parent 057e4ef commit 3e67747

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

DOM EXTRACTION/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# DOM Extraction Script
2+
3+
Extract the DOM elements of a webpage efficiently.
4+
5+
## Installation
6+
7+
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install the required libraries.
8+
9+
```bash
10+
pip install requests beautifulsoup4
11+
12+
```
13+
14+
## Usage
15+
16+
```python
17+
url = 'https://example.com'
18+
```
19+
Replace 'https://example.com' with the URL of the website you want to extract the DOM from.

DOM EXTRACTION/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from bs4 import BeautifulSoup
33

44
# Define the URL of the website you want to extract the DOM from
5-
url = 'https://www.facebook.com'
5+
url = 'https://example.com'
66

77
response = requests.get(url)
88

0 commit comments

Comments
 (0)