Code Monkey home page Code Monkey logo

Comments (5)

saerdnaer avatar saerdnaer commented on July 20, 2024 1

Duplicate of Podcastindex-org/database#5 – basically the export contains both \r and \r\n as newlines. Trying to process the data, I also get UTF8 errors like illegal byte sequence:

wget https://archive.org/download/podcastindex_dump/podcasts_2020-10-02.csv

sed -e 's/"",/,/g'  podcasts_2020-10-02.csv > podcasts_2020-10-02_fixed.csv
> sed: RE error: illegal byte sequence

iconv -f UTF-8 podcasts_2020-10-02.csv > /dev/null                         
> iconv: podcasts_2020-10-02.csv:172436:66: cannot convert

from docs-api.

daveajones avatar daveajones commented on July 20, 2024

I would gladly dump the table as a SQL file with mysqldump, but it contains the itunesOwnerEmail column, which I do not want to distribute. I can’t see a clean way to dump everything but that column without jumping through a bunch of temporary table hoops, which is time consuming on a table that large. Maybe I’ll just bite the bullet and do it anyway.

from docs-api.

Siebe avatar Siebe commented on July 20, 2024

There is indeed not really a way around doing a dump that way without temporary tables. But perhaps if you don't want to distribute that column, it should be in another place.

from docs-api.

saerdnaer avatar saerdnaer commented on July 20, 2024

One could write an own exporter tool, which correctly writes the defined export format. I personally would prefer JSON or maybe even CSV. But we can also write a simple shell script with fixes the current export, e.g. by replacing all /r/n with /n and then all /n with /r/n again. But then we would still have the unicode errors...

from docs-api.

daveajones avatar daveajones commented on July 20, 2024

Karsten in the mastadon shot me a python export tool he uses. He said it should preserve the charset and do well. I'm going to give that a shot this next time.

from docs-api.

Related Issues (20)

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.