limkokhole / pinterest-downloader

Download all images/videos from Pinterest user/board/section.
MIT License
282 stars 47 forks source link

Export log as csv #17

Closed azbotboyz closed 1 year ago

azbotboyz commented 2 years ago

Hello, I want to export the log file in CSV format. is there any way to do this?

limkokhole commented 2 years ago

You need write a script to parse the newline \n and :, e.g. parse this format to comma separated:</p> <p>'[ ' + index + ' ] Pin Id: ' + image_id + '\n') '\nTitle: ' + title(without \n) '\nDescription: ' + description(without \n) '\nCreated at: ' + created_at(without \n) '\nLink: ' + link(without \n) '\n\nMetadata: ' + metadata(without \n) '\n\n'</p> <p>But you also need replace comma in original content if comma use as CSV delimiters, or other ways.</p> <p>Be aware that the <title>: might added/remove in future if need, ensure check the format version on top.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>