Skip to content

Commit

Permalink
update title hash
Browse files Browse the repository at this point in the history
  • Loading branch information
yindaheng98 committed Sep 5, 2024
1 parent 4cde227 commit 99798e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion citation_crawler/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import re
from typing import Optional, Iterable, Tuple
from typing_extensions import Self
from dblp_crawler.parser import title_hash


class Author(metaclass=abc.ABCMeta):
Expand Down Expand Up @@ -44,7 +45,7 @@ def title(self) -> str:
return None

def title_hash(self) -> str:
return re.sub(r"[^0-9a-z\u4e00-\u9fa5]", "", self.title().lower())
return title_hash(self.title())

@abc.abstractmethod
def year(self) -> Optional[int]:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='citation_crawler',
version='2.10.2',
version='2.10.3',
author='yindaheng98',
author_email='[email protected]',
url='https://github.com/yindaheng98/citation-crawler',
Expand All @@ -30,7 +30,7 @@
"Operating System :: OS Independent",
],
install_requires=[
'dblp-crawler>=2.1.4',
'dblp-crawler>=2.1.6',
'python-dateutil>=2.8.2',
'neo4j>=5.15.0',
'typing-extensions'
Expand Down

0 comments on commit 99798e9

Please sign in to comment.