npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

wic-web

v1.0.3

Published

Advanced web scraper for downloading complete website themes with WordPress support and folder hierarchy

Downloads

12

Readme

Wic-Web - Advanced Website Theme Scraper

npm version GitHub license GitHub issues GitHub stars

🚀 Gelişmiş web scraper aracı ile web sitelerinin tam temasını indirin. WordPress ve diğer CMS yapılarını destekler.

✨ Özellikler

  • WordPress Desteği: /about, /contact gibi uzantısız URL'leri destekler
  • Klasör Hiyerarşisi: /admin/user, /demo/template gibi çok seviyeli URL yapılarını destekler
  • Orijinal Yapıyı Korur: ./images/features/artwork-5.png gibi dosya yollarını korur
  • Çoklu Sayfa İndirme: Menülerdeki tüm sayfaları otomatik bulur ve indirir
  • Tam Kaynak İndirme: CSS, JS, görseller, fontlar ve tüm bağımlılıklar
  • Cookie Desteği: Giriş gerektiren sayfalar için cookie authentication
  • Dosya Deduplikasyonu: Aynı dosyayı birden fazla kez indirmeyi önler
  • Konfigürasyonel: İhtiyaca göre tamamen özelleştirilebilir
  • NPM Modülü: Diğer projelerde kolayca kullanılabilir

📦 Kurulum

NPM ile

npm install wic-web

Yarn ile

yarn add wic-web

Git ile

git clone https://github.com/seyfooksck/wic-web.git
cd wic-web
npm install

🚀 Hızlı Başlangıç

const wicweb = require('wic-web');

// Basit kullanım
await wicweb.downloadAllTemplates(['https://seyfooksck.dev'], {
    path: './themes'
});

📖 Kullanım Örnekleri

1. Cookie ile Kimlik Doğrulama

const wicweb = require('wic-web');

const cookie = {
    name: 'session_token',
    value: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
    domain: 'seyfooksck.dev'
};

const options = {
    path: './authenticated-themes',
    supportWordPressStructure: true,
    maxDepth: 3,
    requestTimeout: 30000
};

await wicweb.downloadAllTemplates(['https://seyfooksck.dev/dashboard'], options, cookie);

2. Çoklu Site İndirme

const wicweb = require('wic-web');

const urls = [
    'https://seyfooksck.dev/template.html',
    'https://seyfooksck.dev/demo.html',
    'https://seyfooksck.dev/showcase.html'
];

await wicweb.downloadAllTemplates(urls, {
    path: './multi-themes',
    supportWordPressStructure: true
});

3. WordPress Sitesi İndirme

const wicweb = require('wic-web');

await wicweb.downloadAllTemplates(['https://seyfooksck.dev'], {
    path: './wp-theme',
    supportWordPressStructure: true, // /about, /contact gibi uzantısız URL'ler
    maxDepth: 4
});

4. Özel Konfigürasyon

const wicweb = require('wic-web');

// Global konfigürasyonu değiştir
wicweb.config.supportWordPressStructure = true;
wicweb.config.maxDepth = 5;
wicweb.config.requestTimeout = 60000;

await wicweb.downloadAllTemplates(['https://seyfooksck.dev'], {
    path: './custom-themes'
});

📁 Çıktı Yapısı

themes/
├── template-1/
│   ├── index.html
│   ├── about.html
│   ├── contact.html
│   ├── demo/
│   │   ├── template-1.html
│   │   ├── settings.html
│   │   └── admin/
│   │       ├── user.html
│   │       └── dashboard.html
│   ├── css/
│   │   ├── style.css
│   │   ├── bootstrap.css
│   │   └── vendors.min.css
│   ├── js/
│   │   ├── main.js
│   │   ├── jquery.js
│   │   └── vendors.min.js
│   ├── images/
│   │   ├── features/
│   │   │   └── artwork-5.png
│   │   ├── icons/
│   │   └── logo.png
│   └── fonts/
│       ├── font-awesome.woff2
│       └── roboto.ttf
└── template-2/
    └── ...

🔧 Komut Satırı Kullanımı

# Geliştirme sırasında test et
npm start

# Örnek kullanımları test et
npm test

# Özel test dosyası çalıştır
node test.js

📚 API Referansı

downloadAllTemplates(urls, options, cookie)

Ana fonksiyon - Birden fazla URL'den tema indirir.

Parametreler:

| Parametre | Tip | Zorunlu | Açıklama | |-----------|-----|---------|----------| | urls | Array<string> | ✅ | İndirilecek URL listesi | | options | Object | ✅ | Konfigürasyon ayarları | | cookie | Object\|string | ❌ | Cookie bilgisi (kimlik doğrulama için) |

Options Parametreleri:

| Seçenek | Tip | Varsayılan | Açıklama | |---------|-----|------------|----------| | path | string | - | ZORUNLU - İndirilen dosyaların kaydedileceği klasör | | supportWordPressStructure | boolean | true | WordPress yapısını destekle (uzantısız URL'ler) | | maxDepth | number | 2 | Link takip derinliği | | requestTimeout | number | 30000 | Request timeout süresi (ms) |

Cookie Parametreleri:

| Özellik | Tip | Zorunlu | Açıklama | |---------|-----|---------|----------| | name | string | ✅ | Cookie adı | | value | string | ✅ | Cookie değeri | | domain | string | ❌ | Cookie domain'i |

Örnek:

await wicweb.downloadAllTemplates(
    ['https://seyfooksck.dev/template.html'],
    {
        path: './my-themes',
        supportWordPressStructure: true,
        maxDepth: 3,
        requestTimeout: 45000
    },
    {
        name: 'auth_token',
        value: 'abc123xyz',
        domain: 'seyfooksck.dev'
    }
);

downloadTemplate(url, index, options, cookie)

Tek bir template indirir.

Parametreler:

| Parametre | Tip | Zorunlu | Açıklama | |-----------|-----|---------|----------| | url | string | ✅ | İndirilecek URL | | index | number | ✅ | Template indeksi | | options | Object | ✅ | Konfigürasyon ayarları | | cookie | Object\|string | ❌ | Cookie bilgisi |

config

Global konfigürasyon objesi.

const wicweb = require('wic-web');

// Konfigürasyonu görüntüle
console.log(wicweb.config);

// Konfigürasyonu değiştir
wicweb.config.supportWordPressStructure = false;
wicweb.config.maxDepth = 5;
wicweb.config.requestTimeout = 60000;

🎯 Gelişmiş Özellikler

Klasör Hiyerarşisi Desteği

Wic-Web, URL yapısındaki klasör hiyerarşisini otomatik olarak tanır ve korur:

  • seyfooksck.dev/useruser.html
  • seyfooksck.dev/admin/useradmin/user.html
  • seyfooksck.dev/admin/settings/profileadmin/settings/profile.html

Dosya Deduplikasyonu

Aynı dosyanın birden fazla kez indirilmesini önler:

  • CSS dosyalarında referans edilen kaynaklar
  • JavaScript dosyaları
  • Görseller ve fontlar
  • Tekrarlanan sayfa linkleri

WordPress URL Yapısı

WordPress ve benzeri CMS'lerin uzantısız URL yapısını destekler:

  • /aboutabout.html
  • /contactcontact.html
  • /blog/post-titleblog/post-title.html

🤝 Katkıda Bulunma

  1. Fork edin
  2. Feature branch oluşturun (git checkout -b feature/amazing-feature)
  3. Değişikliklerinizi commit edin (git commit -m 'Add amazing feature')
  4. Branch'inizi push edin (git push origin feature/amazing-feature)
  5. Pull Request oluşturun

📄 Lisans

Bu proje MIT lisansı altında lisanslanmıştır. Detaylar için LICENSE dosyasına bakın.

👨‍💻 Geliştirici

seyfooksck.dev

🐛 Hata Bildirimi

Herhangi bir hata bulursanız, lütfen GitHub Issues sayfasından bildirin.

⭐ Destek

Bu proje yararlıysa, lütfen ⭐ vererek destekleyin!