forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from DIYgod/master
[pull] master from diygod:master
- Loading branch information
Showing
14 changed files
with
401 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
'/user/:id': ['TonyRL'], | ||
'/user/:id': ['TonyRL', 'micheal-death'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const puppeteerGet = async (url, browser) => { | ||
let data; | ||
const page = await browser.newPage(); | ||
await page.setRequestInterception(true); | ||
page.on('request', (request) => { | ||
request.resourceType() === 'document' ? request.continue() : request.abort(); | ||
}); | ||
page.on('response', async (response) => { | ||
if (response.request().url().includes('/api/posts')) { | ||
data = await response.json(); | ||
} else { | ||
data = await response.text(); | ||
} | ||
}); | ||
await page.goto(url, { | ||
waitUntil: 'domcontentloaded', | ||
}); | ||
await page.close(); | ||
return data; | ||
}; | ||
|
||
module.exports = { | ||
puppeteerGet, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
'/report/:industry?/:label?': ['nczitzk'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
'questmobile.com.cn': { | ||
_name: 'QuestMobile', | ||
'.': [ | ||
{ | ||
title: '行业研究报告', | ||
docs: 'https://docs.rsshub.app/routes/new-media#questmobile-hang-ye-yan-jiu-bao-gao', | ||
source: ['/research/reports/:industry/:label'], | ||
target: (params) => { | ||
const industry = params.industry; | ||
const label = params.label; | ||
|
||
return `/questmobile/report/${industry}/${label}`; | ||
}, | ||
}, | ||
], | ||
}, | ||
}; |
Oops, something went wrong.