Code Monkey home page Code Monkey logo

Comments (7)

eliasdabbas avatar eliasdabbas commented on May 25, 2024 1

The read_json function reads the jsonlines file and converts it to a DataFrame. It's all handled by default, so there is nothing to worry about.
Once you have a DataFrame, you can easily convert it to another file format if needed.

Can you please try running the code on one of the online notebook services like Google Colab or Kaggle and let me know what happens?

If you do so and still have issues, please share access to the notebook, and I'll look into it.

from advertools.

eliasdabbas avatar eliasdabbas commented on May 25, 2024

For the second question:

how do I output these results into a CSV file that can viewed in excel or google sheets

Once you have a pandas DataFrame, you can easily run the .to_csv method and convert it to a CSV file. There are many other converters as well. So, once you have a crawl_df you can run:

crawl_df.to_csv('my_crawl_file.csv', index=False)

For the first question can you please share the exact code that you are running, the URL you are crawling, so I can check?

from advertools.

reconrad48 avatar reconrad48 commented on May 25, 2024

Thanks Elias, but I ran the code exactly how it is shown above only with a real website URL. The only previous command was !pip3 install advertools. But I am beginning to think that it isn't going to matter if I will need to create a panda complex dataframe. That's mind-boggling really, that by default the SEO Crawler pulls data (the default setting) into a json lines file that is basically unusable until I build a highly complex dataframe matching columns to data... Perhaps some programmers might find that easy to do but I find that as mind-numbing torture. Of course it has nothing do with your tools, it's just spacy and pandas really.

from advertools.

eliasdabbas avatar eliasdabbas commented on May 25, 2024

@reconrad48 Did you try this? Did it work?

from advertools.

reconrad48 avatar reconrad48 commented on May 25, 2024

Sorry, haven't gotten back around to it yet... I will work on it in the next few days. I'll run a few questions through GPTChat to see if can help expedite my learning lol.

from advertools.

reconrad48 avatar reconrad48 commented on May 25, 2024

This is what GPTChat said I should do lol.. does it look right?

https://ibb.co/F37dG8b

from advertools.

eliasdabbas avatar eliasdabbas commented on May 25, 2024

At least we have some time to do some work before GPT takes over everything hahahaha...

Yes, it's correct, but there's no need for the orient parameter.

Try it on one of the online platforms and feel free to re-open the issue if you still have problems.

from advertools.

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.