Giter Club home page Giter Club logo

familysearch_downloader's Introduction

familysearch_downloader

JavaScript for automate downloading images from familysearch.org

Using

Open first page with book, that you want to download, like this:

Снимок экрана от 2023-06-05 14-19-53

Then open browser devtools(ctrl+shift+c) and press to console:

Снимок экрана от 2023-06-05 14-20-07

Снимок экрана от 2023-06-05 14-20-23

copy minified script version:

/*! Familysearch-downloader v1.0 | (c) palandovalex */
(()=>{async function e(e){const t=await fetch(e);if(!t.ok)throw new Error(t.status);console.log(t.type);const n=await t.blob(),o=new FileReader;return o.readAsDataURL(n),new Promise((e,t)=>{o.onloadend=(()=>{e(o.result)}),o.onerror=t})}var t=document.getElementsByClassName("next pager-icon fs-civ-circle-chevron-right enabled")[0],n=document.getElementsByClassName("actionToolbarSaveButton saveButton button save")[0];!function o(a){setTimeout(function(){let c=null;(c=a?async function(t){let n=t.getAttribute("href");var o=!1;do{try{o=await e(n)}catch({name:e,message:t}){let n=18e4;509==t&&(n*=21),await new Promise(e=>setTimeout(e,n))}}while(!o);const a=document.createElement("a");a.href=o,a.download="record_image",document.body.appendChild(a),a.click(),document.body.removeChild(a)}(n):async function(e){if(e.fireEvent)e.fireEvent("onclick");else{var t=document.createEvent("Events");t.initEvent("click",!0,!1),e.dispatchEvent(t)}}(t)).then(()=>{document.getElementsByClassName("next pager-icon fs-civ-circle-chevron-right enabled disabled")[0]||o(!a)})},8e3+Math.floor(8e3*Math.random()))}(!0)})();

Paste it to console and press enter:

Снимок экрана от 2023-06-05 14-21-12 Снимок экрана от 2023-06-05 14-21-20 Снимок экрана от 2023-06-05 14-21-34

Now script started, and downloading your images.

`Warning! Periodicly you should reset page, again enter my script to console and start it. It needs to prevent overfilyng your RAM.

familysearch_downloader's People

Contributors

palandovalex avatar

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.