mirror of https://github.com/Bunsly/JobSpy
Compare commits
No commits in common. "61205bcc77fd26e43ed538272e36199205cf39e5" and "d4d52d05f59029e1295ba569a494a4ce851b259f" have entirely different histories.
61205bcc77
...
d4d52d05f5
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
||||||
import math
|
import math
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, date, timedelta
|
from datetime import datetime, date
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import regex as re
|
import regex as re
|
||||||
|
@ -277,7 +277,7 @@ class Naukri(Scraper):
|
||||||
match = re.search(r"(\d+)\s*day", label)
|
match = re.search(r"(\d+)\s*day", label)
|
||||||
if match:
|
if match:
|
||||||
days = int(match.group(1))
|
days = int(match.group(1))
|
||||||
parsed_date = (today - timedelta(days = days)).date()
|
parsed_date = today.replace(day=today.day - days).date()
|
||||||
log.debug(f"Date parsed: {days} days ago -> {parsed_date}")
|
log.debug(f"Date parsed: {days} days ago -> {parsed_date}")
|
||||||
return parsed_date
|
return parsed_date
|
||||||
elif created_date:
|
elif created_date:
|
||||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "python-jobspy"
|
name = "python-jobspy"
|
||||||
version = "1.1.80"
|
version = "1.1.79"
|
||||||
description = "Job scraper for LinkedIn, Indeed, Glassdoor, ZipRecruiter & Bayt"
|
description = "Job scraper for LinkedIn, Indeed, Glassdoor, ZipRecruiter & Bayt"
|
||||||
authors = ["Cullen Watson <cullen@cullenwatson.com>", "Zachary Hampton <zachary@zacharysproducts.com>"]
|
authors = ["Cullen Watson <cullen@cullenwatson.com>", "Zachary Hampton <zachary@zacharysproducts.com>"]
|
||||||
homepage = "https://github.com/cullenwatson/JobSpy"
|
homepage = "https://github.com/cullenwatson/JobSpy"
|
||||||
|
|
Loading…
Reference in New Issue