Spaces:
Sleeping
Sleeping
Update parser/extract_tables_by_article.py
Browse files
parser/extract_tables_by_article.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
from typing import List, Dict, Any
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
import httpx
|
| 5 |
-
from parser.
|
| 6 |
from parser.article_extractor import is_article, extract_article_number # <-- استخدم الدوال الصحيحة
|
| 7 |
|
| 8 |
async def extract_tables_from_url(url: str, timeout: int = 10) -> Dict[str, Any]:
|
|
|
|
| 2 |
from typing import List, Dict, Any
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
import httpx
|
| 5 |
+
from parser.table_extractorgo import tables_from_soup, table_to_struct
|
| 6 |
from parser.article_extractor import is_article, extract_article_number # <-- استخدم الدوال الصحيحة
|
| 7 |
|
| 8 |
async def extract_tables_from_url(url: str, timeout: int = 10) -> Dict[str, Any]:
|