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

fix(route/missav): 解决不能访问的问题 #17892

Closed
wants to merge 26 commits into from
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f99b215
[feat(routes)] Add ipsw.dev support
rien7 Sep 30, 2024
416603a
Merge branch 'DIYgod:master' into master
rien7 Oct 9, 2024
eab9805
fix(xiaohongshu): fix note fulltext
rien7 Oct 9, 2024
797f6e5
add config
rien7 Oct 9, 2024
a5ee720
feat: add fulltext with cookie
rien7 Oct 10, 2024
25ba2e4
feat: add fulltext with cookie
rien7 Oct 10, 2024
fe9df5c
Merge branch 'refs/heads/master' into xiaohongshu
rien7 Oct 10, 2024
c79a5e1
Merge branch 'DIYgod:master' into xiaohongshu
rien7 Oct 10, 2024
1018ff2
[feat(routes)] Add ipsw.dev support
rien7 Sep 30, 2024
fb841e9
Merge branch 'DIYgod:master' into ipswdev
rien7 Oct 10, 2024
637c1ec
feat: add fulltext with cookie
rien7 Oct 10, 2024
3434cd4
fix: config
rien7 Oct 10, 2024
6321a65
Merge branch 'refs/heads/xiaohongshu'
rien7 Oct 10, 2024
5399b18
fix: await in loop
rien7 Oct 10, 2024
2433d83
Merge branch 'refs/heads/xiaohongshu'
rien7 Oct 10, 2024
735da7c
fix: use art-template
rien7 Oct 11, 2024
650c858
fix: remove ipswdev in other branch
rien7 Oct 11, 2024
3d07a8d
Merge branch 'refs/heads/xiaohongshu'
rien7 Oct 11, 2024
2e2f41b
Merge branch 'refs/heads/ipswdev'
rien7 Oct 11, 2024
09cfcee
fix: add pubDate
rien7 Oct 14, 2024
9ef6ef4
Merge branch 'refs/heads/xiaohongshu'
rien7 Oct 14, 2024
db4d9d4
fix(route) ikea/cn/low-price
dddaniel1 Nov 24, 2024
7472a52
Merge branch 'master' of https://github.com/DIYgod/RSSHub
dddaniel1 Dec 13, 2024
00dcea2
Merge remote-tracking branch 'origin/master'
dddaniel1 Dec 13, 2024
6c21fc3
Merge branch 'master' of https://github.com/DIYgod/RSSHub
dddaniel1 Dec 14, 2024
2ef7484
feat(route/missav): 修复missav不能访问的问题
dddaniel1 Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/routes/missav/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import { Route } from '@/types';
import { getCurrentPath } from '@/utils/helpers';
const __dirname = getCurrentPath(import.meta.url);

import got from '@/utils/got';
import { load } from 'cheerio';
import { art } from '@/utils/render';
import path from 'node:path';
import puppeteer from '@/utils/puppeteer';
import { puppeteerGet } from '@/routes/aip/utils';

export const route: Route = {
path: '/new',
Expand Down Expand Up @@ -33,9 +34,9 @@ export const route: Route = {

async function handler() {
const baseUrl = 'https://missav.com';
const { data: response } = await got(`${baseUrl}/dm397/new`);
const browser = await puppeteer();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary use of puppeteer. The site can be accessed by passing RSSHub's useragent.

const response = await puppeteerGet(`${baseUrl}/dm397/new`, browser);
const $ = load(response);

const items = $('.grid .group')
.toArray()
.map((item) => {
Expand Down
Loading