Closed peppy0510 closed 1 month ago
Appreciate a lot for your repository !!!
JavBusUtil
initial argument
bus_auth
should have default empty string value""
line 1191
bus_auth: str,
to
bus_auth="",
JavBusUtil
other languages support
in case of
base_url = "https://www.javbus.com/en"
to retrieve stars name with English or another language rather than Japanese.
get_av_by_id()
should not remove and rejoin empty spaces when parsea
tags.line 1563
av["tags"] = ["".join(tag.text.split()) for tag in tags]
to
av["tags"] = [tag.text.strip() for tag in tags]
or
av["tags"] = [re.sub(r"[\s]+", " ", tag.text.strip()) for tag in tags]
to remove double spacesor
av["tags"] = [re.sub(r"([^a-z]|^)[\s]+([^a-z]|$)", r"\1\2", tag.text.strip(), flags=re.IGNORECASE) for tag in tags]
to remove space only between non English characters
Thanks! Can you make a pull request?
Appreciate a lot for your repository !!!
JavBusUtil
initial argumentbus_auth
should have default empty string value""
bus_auth: str,
bus_auth="",
JavBusUtil
other languages supportbase_url = "https://www.javbus.com/en"
to retrieve stars name with English or another language rather than Japanese.get_av_by_id()
should not remove and rejoin empty spaces when parsea
tags.av["tags"] = ["".join(tag.text.split()) for tag in tags]
av["tags"] = [tag.text.strip() for tag in tags]
av["tags"] = [re.sub(r"[\s]+", " ", tag.text.strip()) for tag in tags]
to remove double spacesav["tags"] = [re.sub(r"([^a-z]|^)[\s]+([^a-z]|$)", r"\1\2", tag.text.strip(), flags=re.IGNORECASE) for tag in tags]
to remove space only between non English characters