Giter VIP home page Giter VIP logo

wpdl's People

Contributors

github-actions[bot] avatar jtiala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wpdl's Issues

TypeError: Cannot read properties of undefined (reading 'source_url')

`root@DREAM-PC:/mnt/c/Users/SenHan/Desktop/wpdl# npx wpdl --url https://xxx.xxx --posts --removeEmptyElements
--- wpdl ---

Starting to scrape https://xxx.xxx ...

Scraping posts...

Scraping page 1 of 3368 from https://xxx.xxx/wp-json/wp/v2/posts?order=desc ...

Scraping post 139828-momo-sakura-%e6%a1%9c%e7%a9%ba%e3%82%82%e3%82%82-%e3%82%a2%e3%82%b5%e8%8a%b8sexy%e5%a5%b3%e5%84%aa%e5%86%99%e7%9c%9f%e9%9b%86-%e3%80%8c%e5%a5%bd%e3%81%8d%e3%80%81%e3%81%a7%e3%81%99%e3%80%82%e3%80%8d-4...
Found 1 image(s).
file:///C:/Users/SenHan/Desktop/wpdl/src/utils/scraping.js:207
mediaItem.media_details.sizes.full.source_url &&
^

TypeError: Cannot read properties of undefined (reading 'source_url')
at downloadMediaItemImage (file:///C:/Users/SenHan/Desktop/wpdl/src/utils/scraping.js:207:40)
at downloadImages (file:///C:/Users/SenHan/Desktop/wpdl/src/utils/scraping.js:199:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async dataHandler (file:///C:/Users/SenHan/Desktop/wpdl/src/scrapers/posts.js:125:11)
at async paginatedScrape (file:///C:/Users/SenHan/Desktop/wpdl/src/utils/scraping.js:58:5)
at async scrapePosts (file:///C:/Users/SenHan/Desktop/wpdl/src/scrapers/posts.js:44:3)
at async file:///C:/Users/SenHan/Desktop/wpdl/src/wpdl.js:191:3

Node.js v18.14.0
root@DREAM-PC:/mnt/c/Users/SenHan/Desktop/wpdl#`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.