The World in Brief from The Economist 从2020年2月1号开始

 

https://shows.acast.com/theeconomistmorningbriefing/episodes

 

(function autoScrollAndLoad() {
    let lastHeight = 0;
    let sameCount = 0;

    function scrollStep() {
        window.scrollTo(0, document.body.scrollHeight);

        // Wait for network & rendering
        setTimeout(() => {
            const newHeight = document.body.scrollHeight;

            if (newHeight !== lastHeight) {
                lastHeight = newHeight;
                sameCount = 0; // reset stagnation counter
                scrollStep(); // keep going
            } else {
                sameCount++;
                if (sameCount < 5) {
                    // try a few more times in case of lazy load delays
                    scrollStep();
                } else {
                    console.log("No more content to load.");
                }
            }
        }, 1500); // adjust timeout depending on site speed
    }

    scrollStep();
})();

 

 

function downloadFile(filename, content, type = 'text/plain') {
    const blob = new Blob([content], { type: `${type};charset=utf-8` });
    const link = document.createElement('a');
    link.href = URL.createObjectURL(blob);
    link.download = filename;
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
    URL.revokeObjectURL(link.href); // Clean up memory
}

let my_list = [];
document.querySelectorAll('ul.ant-list-items div.EpisodeListItem__EpisodeInfo-dMuDjN.ibWqjy a').forEach(x => my_list.push(x.href));
let filename = `20250915_${my_list.length}_The_World_in_Brief_from_The_Economist`;
downloadFile(`${filename}.json`, JSON.stringify(my_list, null, 4)); // 用来设置Indent

 

从2020年2月1号开始

  • The Economist Morning Briefing, Feb 4th 2020

     03:01| Tuesday, February 4, 2020
    Brexit speeches; Iowa results delay
  • The Economist Morning Briefing, Feb 3rd 2020

     03:06| Monday, February 3, 2020
    First coronavirus death outside China and Tanzania’s deadly church stampede
  • The Economist Morning Briefing, Feb 1st 2020

     03:23| Saturday, February 1, 2020
    Britain leaves the EU; Impeachment testimony blocked
     
     
posted @ 2025-09-15 11:51  profesor  阅读(8)  评论(0)    收藏  举报