Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peydagarnews #167

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
qaartaal
  • Loading branch information
Pooya-Y committed Dec 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5b2d4d8f79bdd67429be791072be7b057b818e55
1 change: 1 addition & 0 deletions src/modules/interfaces.ts
Original file line number Diff line number Diff line change
@@ -723,6 +723,7 @@ export enum enuDomains {
psarena = "psarena",
pspro = "pspro",
purson = "purson",
qaartaal = "qaartaal",
qalampress = "qalampress",
qartalnews = "qartalnews",
qavanin = "qavanin",
27 changes: 27 additions & 0 deletions src/scrappers/CustomNews.ts
Original file line number Diff line number Diff line change
@@ -13325,4 +13325,31 @@ export class khabarvahonar extends clsScrapper {
}
})
}
}

export class qaartaal extends clsScrapper {
constructor() {
super(enuDomains.qaartaal, "qaartaal.ir", {
selectors: {
article: "body.single-post",
aboveTitle: "h3",
title: "h1",
subtitle: ".short-content",
datetime: {
conatiner: "time"
},
content: {
main: ".full-content",
},
category: {
selector: ".the-cat a",
lastIndex: 2
},
tags: ".post-tags .footer ul li a"
},
url: {
removeWWW: true
}
})
}
}
3 changes: 3 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -3116,5 +3116,8 @@ yarn dev && yarn start vajehnews -u https://vajehnews.ir/عملکرد-درخشا
yarn dev && yarn start khabarvahonar
yarn dev && yarn start khabarvahonar -u https://khabarvahonar.ir/رونمایی-از-۱۳۶-اثر-برتر-پوشاک-ایرانی-در/

yarn dev && yarn start qaartaal
yarn dev && yarn start qaartaal -u https://qaartaal.ir/نقره-داغ-متخلفین-استفاده-از-برق-غیرمجا/

https://motamem.org/
/**/