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

vsco.co #569

Open
https433 opened this issue Apr 25, 2024 · 1 comment
Open

vsco.co #569

https433 opened this issue Apr 25, 2024 · 1 comment

Comments

@https433
Copy link

vsco

https://vsco.co/(user)/collection/1

Any user with a repost collection

Custom rule you've tried

{
"name": "VSCO",
"url": "^https://vsco.com/*/collection/*",
"pageElement": "id("root")/grain-theme[1]/div[@class="css-1n2jhjr e1lxikmc0"]/div[@class="css-1fod2s4 e1lxikmc0"]/main[@class="main css-ayxofz e19mt3zn0"]/div[@class="css-87mlbn e1c94cdo0"]/div[@class="css-lnnxvk e1l3i6oy1"]/ul[@class="css-r147me e1lxikmc0"]/li[@class="css-1xij1vs esu64ia0"]",
"nextLink": "id("root")/grain-theme[1]/div[@class="css-1n2jhjr e1lxikmc0"]/div[@class="css-1fod2s4 e1lxikmc0"]/main[@class="main css-ayxofz e19mt3zn0"]/div[@class="css-87mlbn e1c94cdo0"]/div[@class="css-lnnxvk e1l3i6oy1"]/div[@class=""]/a[@class="css-1wi2s0h"]",
"action": 1,
"pageElementCss": "display:none"
}
@hoothin
Copy link
Owner

hoothin commented Apr 26, 2024

Utilize pagePre to analyze the data and create elements, and then employ pageElement to extract the elements you have created, for example "pagePre": "let data = response.match(/window\\.__PRELOADED_STATE__ = (.*?)<\\/script>/)[1]; eval('data='+data); console.debug(data.entities.images);". The data.entities.images contains all the images on the page, you can createElement on your way.

Alternatively, forget pagePre, you can simply utilize the 'Ignore X-Frame Headers' extension to bypass CORS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants