Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -31,7 +31,6 @@ Features are from three different classes:
|
|
31 |
- **24** extracted from the content of their correspondent pages
|
32 |
- **7** are extracetd by querying external services.
|
33 |
|
34 |
-
|
35 |
## Details
|
36 |
|
37 |
- **Funded by:** Abdelhakim Hannousse, Salima Yahiouche
|
@@ -52,7 +51,35 @@ For details, please refer to the paper.
|
|
52 |
<em>Source: Extract form the <a href="https://arxiv.org/abs/2010.12847">paper</a></em>
|
53 |
</p>
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
## Citation
|
58 |
|
|
|
31 |
- **24** extracted from the content of their correspondent pages
|
32 |
- **7** are extracetd by querying external services.
|
33 |
|
|
|
34 |
## Details
|
35 |
|
36 |
- **Funded by:** Abdelhakim Hannousse, Salima Yahiouche
|
|
|
51 |
<em>Source: Extract form the <a href="https://arxiv.org/abs/2010.12847">paper</a></em>
|
52 |
</p>
|
53 |
|
54 |
+
## Load Dataset
|
55 |
+
|
56 |
+
- With **datasets**
|
57 |
+
```python
|
58 |
+
from datasets import load_dataset
|
59 |
+
|
60 |
+
dataset = load_dataset("pirocheto/phishing-url")
|
61 |
+
```
|
62 |
+
|
63 |
+
- With **pandas** and **huggingface_hub**
|
64 |
+
```python
|
65 |
+
import pandas as pd
|
66 |
+
from huggingface_hub import hf_hub_download
|
67 |
|
68 |
+
REPO_ID = "pirocheto/phishing-url"
|
69 |
+
FILENAME = "data.csv"
|
70 |
+
|
71 |
+
dataset = pd.read_csv(
|
72 |
+
hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="dataset")
|
73 |
+
)
|
74 |
+
```
|
75 |
+
|
76 |
+
- With **pandas** only
|
77 |
+
```python
|
78 |
+
import pandas as pd
|
79 |
+
|
80 |
+
url = "https://huggingface.co/datasets/pirocheto/phishing-url/raw/main/data.csv"
|
81 |
+
df = pd.read_csv(url)
|
82 |
+
```
|
83 |
|
84 |
## Citation
|
85 |
|