You are viewing a single comment's thread from:

RE: [ENG/ITA] Python and Hive: A Tool to Simplify Curation | Work in Progress!

Beautiful Soup, interesting.., I haven't tried scraping as yet. You can get a post count using BEEM, I can dig it out of my script if you like. BEEM is also deprecated and I am going to re-write my BOT soon, using alternative code.

Sort:  

I was looking for a way to build a word counter of my own and Beautiful Soup seemed like the way to go... I had no idea BEEM already had its own counter 😅 I just started using it and I still have to check a lot of stuff! :)

BEEM is also deprecated

Really!? What a sad news, I was just starting to experiment with it... is there already an alternative around?

I started learning python roughly 2 months ago and I thought that doing something tangible on Hive could help me stay motivated and focused :)

Btw, many thanks for the support! This evening I already made some improvements to the code above:

  1. I added one more func to create a new file every 24 hours, with each file having in its name the date it was created
  2. I polished a bit the code and made it more readable

Now I'm going to work on the other two scripts I'd like to write!

This will give you some idea of how to get the body content size using BEEM.

# Get Approximate Bodysize of post
bodysize = BEEMComment_post.body.split(" ", post.body.count(" "))
bodylen = len(bodysize)

BEEM was maintained by an ex-witness named @holger80 who vanished some time ago. His library remains but it's getting more outdated every day.

I am starting to look at the HIVE Condenser API, it's here:
https://developers.hive.io/apidefinitions/condenser-api.html

I started learning python roughly 2 months ago and I thought that doing something tangible on Hive could help me stay motivated and focused :)

Do it, it's very rewarding...

Thanks for all this info and for your snippet!

The Condenser API docs look full of new stuff to digest... grasping all of that it's not going to be easy 😅