Skip to main content

Posts

Showing posts with the label python projects

Some nice open-source python repositories to work

I have been looking to contribute in some nice data science repositories in python. I have searched some nice repos which are in their begining phases or rather they are in a position that they can be touched to improve and amateurs like me in machine learning with almost no commit in open sources, can do a pretty good job committing to those. Keeping that in mind, I am starting to list down some of the repos like that: (1) dython: This is a python data tools repo. Although this is published now and has somewhat no issues; it looks like being somewhat open-ended creative people can add a lots of other tools and functionality to this tool, make it more main streamed and therefore increase their individual and the package's overall progress. (2) simpletransformers : This is simple transformer written by Thilina Rajapakse. This is an amazing package which uses the huggingface's transformer library and then combines its high level knowledge requirements into its intrinsic progra...

docstrings in python programming

What is docstrings? To quote PEP 257 from python's own documentation, " A docstring is a string literal that occurs as the first statement in a module, function, class, or method definition. Such a docstring becomes the __doc__ special attribute of that object. " To ease this definition out, basically, a docstring is a piece of string or a small note which is generally provided in a class, function or a method definition for informing as well as documenting important information about the class, function or the method. There are two basic types of docstrings, which are oneliner docstrings and multiline docstrings. How to write docstrings? docstrings are generally literal strings and therefore you can write them within """ triple double quotes""". But there are certain rules in case of unicode or backslashes. If your docstring information is supposed to have backslash character then you have to use r"""raw triple double quot...

Upvotocracy bot creation project (selenium + post api + webscraping)

Introduction to the project concept: After a long time with machine learning, I recently again got interested to use web-scraping for an exciting project. One of my friends, Anthony Ettinger has started a new exciting website called upvotocracy which is a reddit clone with a number of interesting changes in both voting, moderation(there is none in upvotocracy) and other things. So I have planned to create a bot to post automated contents to his site to increase my karma. And for now, this act is allowed and is not considered illegal. So I have planned to initially populate the thread FakeNews from the onion news using my bot. Later on we will focus on further progresses in the similar direction. Just to provide caution, this was a test project and posting actually using this process ended up in spamming the site unnecessarily; resulting me being heavily thrashed by the whole community. So don't try this on the actual platform. The goal of writing this post is to provide a knowled...

I made a youtube-bot(selenium driven web scraping article)

Select Language Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Gujarati Marathi Nepali Punjabi Tamil Telugu Before I start: Warning: Do not try the whole program. this will disable your youtube account for spamming reasons. So, I recently wanted to go to everyone, and tell that I have started a blog. So, I thought, why not go to youtube videos related to my contents and drop links? so I planned to do the same. But, there are so many youtube videos, and I have only so less time. So I planned to...