Search is not available for this dataset
urls stringlengths 72 217 | content stringlengths 711 35.2M | metadata dict |
|---|---|---|
https://thuvienphapluat.vn/van-ban/Van-hoa-Xa-hoi/Thong-tu-17-2011-TT-BVHTTDL-xet-va-cong-nhan-Xa-dat-chuan-van-hoa-nong-thon-moi-133445.aspx | <div class="content1">
<div>
<div>
<table border="0" cellpadding="0" cellspacing="0" style="width:448.95pt;border-collapse:collapse" width="599"><!--VABWAFAATABfADIAMAAyADEAMQAyADAAOAA=-->
<tr>
<td style="width:167.4pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="223">
<p align="center" style="margin-bottom:6.0pt;t... | {
"Loại văn bản:": "Thông tư",
"Ngày ban hành:": "02/12/2011",
"Ngày công báo:": "Đã biết",
"Ngày hiệu lực:": "Đã biết",
"Ngày hợp nhất:": null,
"Người ký:": "Hoàng Tuấn Anh",
"Nơi ban hành:": "Bộ Văn hoá, Thể thao và du lịch",
"Số công báo:": "Đã biết",
"Số hiệu:": "17/2011/TT-BVHTTDL",
"Tình trạng... |
https://thuvienphapluat.vn/van-ban/Tien-te-Ngan-hang/Thong-tu-27-2018-TT-NHNN-phong-toa-von-tai-san-cua-chi-nhanh-ngan-hang-nuoc-ngoai-400907.aspx | <div class="content1">
<div>
<div>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse"><!--VABWAFAATABfADIAMAAyADQAMAAyADIANwA=-->
<tr>
<td style="width:170.4pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="227">
<p align="center" style="margin-top:6.0pt;text-align:center"><b>NGÂN HÀNG... | {
"Loại văn bản:": "Thông tư",
"Ngày ban hành:": "22/11/2018",
"Ngày công báo:": "Đã biết",
"Ngày hiệu lực:": "Đã biết",
"Ngày hợp nhất:": null,
"Người ký:": "Nguyễn Đồng Tiến",
"Nơi ban hành:": "Ngân hàng Nhà nước Việt Nam",
"Số công báo:": "Đã biết",
"Số hiệu:": "27/2018/TT-NHNN",
"Tình trạng:": "... |
https://thuvienphapluat.vn/van-ban/Lao-dong-Tien-luong/Thong-tu-127-2016-TT-BQP-quy-trinh-kiem-dinh-ky-thuat-an-toan-doi-voi-xe-cau-ghe-du-2016-325399.aspx | <div class="content1">
<div>
<div>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse"><!--VABWAFAATABfADIAMAAyADQAMAA0ADEAOQA=-->
<tr>
<td style="width:167.4pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="223">
<p align="center" style="margin-top:6.0pt;text-align:center"><b>BỘ QUỐC P... | {
"Loại văn bản:": "Thông tư",
"Ngày ban hành:": "30/08/2016",
"Ngày công báo:": "Đã biết",
"Ngày hiệu lực:": "Đã biết",
"Ngày hợp nhất:": null,
"Người ký:": "Bế Xuân Trường",
"Nơi ban hành:": "Bộ Quốc phòng",
"Số công báo:": "Đã biết",
"Số hiệu:": "127/2016/TT-BQP",
"Tình trạng:": "Đã biết"
} |
"https://thuvienphapluat.vn/van-ban/Dau-tu/Thong-tu-08-2002-TT-BYT-huong-dan-hop-tac-dau-tu-nuoc-ngo(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<table border=\"0\" cellpadding=\"0\" style=\"width:100.0%;(...TRUNCATED) | {"Loại văn bản:":"Thông tư","Ngày ban hành:":"20/06/2002","Ngày công báo:":"Đã biết"(...TRUNCATED) |
"https://thuvienphapluat.vn/van-ban/Thuong-mai/Nghi-dinh-26-2007-ND-CP-chu-ky-so-dich-vu-chung-thuc-(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<p><span style='font-size:10.0pt;\"Arial\",\"sans-serif\"'>(...TRUNCATED) | {"Loại văn bản:":"Nghị định","Ngày ban hành:":"15/02/2007","Ngày công báo:":"Đã bi(...TRUNCATED) |
"https://thuvienphapluat.vn/van-ban/Lao-dong-Tien-luong/Thong-tu-31-2011-TT-BLDTBXH-huong-dan-Nghi-d(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" sty(...TRUNCATED) | {"Loại văn bản:":"Thông tư","Ngày ban hành:":"03/11/2011","Ngày công báo:":"Đã biết"(...TRUNCATED) |
"https://thuvienphapluat.vn/van-ban/Chung-khoan/Thong-tu-162-2010-TT-BTC-sua-doi-Thong-tu-95-2008-TT(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" sty(...TRUNCATED) | {"Loại văn bản:":"Thông tư","Ngày ban hành:":"20/10/2010","Ngày công báo:":"Đã biết"(...TRUNCATED) |
"https://thuvienphapluat.vn/van-ban/Thuong-mai/Nghi-dinh-85-2022-ND-CP-co-che-tai-chinh-thanh-toan-k(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" sty(...TRUNCATED) | {"Loại văn bản:":"Nghị định","Ngày ban hành:":"24/10/2022","Ngày công báo:":"Đã bi(...TRUNCATED) |
"https://thuvienphapluat.vn/van-ban/Giao-thong-Van-tai/Nghi-dinh-28-2016-ND-CP-sua-doi-Nghi-dinh-56-(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" sty(...TRUNCATED) | {"Loại văn bản:":"Nghị định","Ngày ban hành:":"20/04/2016","Ngày công báo:":"Đã bi(...TRUNCATED) |
"https://thuvienphapluat.vn/van-ban/The-thao-Y-te/Nghi-dinh-399-NV-DC-ND-cho-phep-Hoi-Dong-y-Viet-Na(...TRUNCATED) | "<div class=\"content1\">\n<div>\n<div>\n<table border=\"0\" cellpadding=\"0\" style=\"width:100.0%\(...TRUNCATED) | {"Loại văn bản:":"Nghị định","Ngày ban hành:":"03/06/1957","Ngày công báo:":"Đã bi(...TRUNCATED) |
End of preview. Expand in Data Studio
Code processing data
import re
import w3lib
from bs4 import BeautifulSoup
def get_metadata(content):
soup = BeautifulSoup(content, 'html.parser')
list_att = soup.find_all('tr')
list_att = [i.find_all('td') for i in list_att]
att = dict()
for i in list_att:
temp = [j.text.strip() for j in i if j.text.strip() != '']
if len(temp) == 4:
att[temp[0]] = temp[1]
att[temp[2]] = temp[3]
if len(temp) == 2:
att[temp[0]] = temp[1]
return att
def extract_text_from_html(text):
def clean_text(text):
result = w3lib.html.remove_tags(text, keep=('br', )).replace('\r\n', ' ').replace('<br/>', '\n').replace(' ', ' ')
result = re.sub(r'\n{3,}', '\n\n', result).strip()
# result = re.sub(r'(?<!\n)\s{2,}(?!\n)', ' ', result)
return result
return clean_text(text)
test_case_1 = extract_text_from_html(dataset[10]['content'])
print(dataset[10]['urls'])
print(test_case_1)
- Downloads last month
- 4