kiliman / tailwindui-crawler

tailwindui-crawler downloads the component HTML files locally
MIT License
765 stars 97 forks source link

Change in HTML layout of component page causes filenames to be wrong #55

Closed vladislavasemernina closed 3 years ago

vladislavasemernina commented 3 years ago

Example:

Application UI = > Application Shells should have the folders inside

  1. Stacked Layouts (9 components)
  2. Sidebar Layouts (8 components)
  3. Multi-Column Layouts (7 components)

But instead of this folders, crawler returns just three html files

https://prnt.sc/1qqd47x

kiliman commented 3 years ago

Can you post the crawler output?

vladislavasemernina commented 3 years ago

@kiliman

https://pastebin.com/u7fyGMpm

kiliman commented 3 years ago

Looks like Tailwind UI made a change to their pages around 8/26.

Here's what it looked like on 8/25. Notice how each component is in a separate file by component name.

⏳  Processing /components/marketing/sections/heroes...
⏱   127ms (200) https://tailwindui.com/components/marketing/sections/heroes
🔍  Found 9 components
📝  Writing html simple_centered.html
📝  Writing react simple_centered.jsx
📝  Writing vue simple_centered.vue
📝  Writing alpine simple_centered.html
📝  Writing html split_with_navbar.html
📝  Writing react split_with_navbar.jsx
📝  Writing vue split_with_navbar.vue
📝  Writing alpine split_with_navbar.html

On 8/26, it's now only saving each component by category name over and over.

⏳  Processing /components/marketing/sections/heroes...
⏱   98ms (200) https://tailwindui.com/components/marketing/sections/heroes
🔍  Found 9 components
📝  Writing html heroes.html
📝  Writing react heroes.jsx
📝  Writing vue heroes.vue
📝  Writing alpine heroes.html
📝  Writing html heroes.html
📝  Writing react heroes.jsx
📝  Writing vue heroes.vue
📝  Writing alpine heroes.html

Thanks for letting me know. I'll fix it.

kiliman commented 3 years ago

Fixed in v3.2.1 4d727e0800805464de855fbe0cb289afce0d99a4

vladislavasemernina commented 3 years ago

@kiliman Thank you. It's working now