DEV Community

dinhanhx
dinhanhx

Posted on

Perceive Your Meme

Perceive Your Meme (PyM)

Alt Text

Read more at GitHub repos

What is this?

A Python library to scrap from KnowYourMeme. Written in Python 3.7!

How to set up this library?

Before setting up this library, it is recommended to checkout this file PerceiveYourMeme/CONST.py, there are 2 constants you may want to modify.

HEADERS = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36 Edg/85.0.564.44'}
# User-Agent headers
# This HEADERS can be achieved by going to this link
# https://www.whatismybrowser.com/detect/what-is-my-user-agent
# If you are smart and have time, https://developers.whatismybrowser.com/api/

DEFAULT_DOWNLOAD_PATH = ''
# Define default download path
# This depends on OS
# If you are smart and have time, https://stackoverflow.com/questions/35851281/python-finding-the-users-downloads-folder
Enter fullscreen mode Exit fullscreen mode

Clone this repository and run this command at root

pip install -r req.txt . (The last parameter is a dot .)

How to use this library?

Since I am too busy to checkout at readthedocs, so please checkout DOCUMENTATION.md

What are applications of this library?

If you use this library for different purposes from mentioned one, it is recommended to add your purposes and links to your project to this section.

Ascii art

.,;;,,,,,'.                   .;cc'         .:c:.        
.::.   ..,:,.                 .cllc.       .:lll.        
.:;.     .;c. .'.       .''.  .c:;c:.     .;c,:l'        
.:;.     .::. ;OO;     ,kKO;  'l:.,l;     ,l,.;o,        
.::.....':;.   l0x.   .d00l.  'o; .:l'   .c:. ,o;        
.:c;,,,,'.     .o0o.  c0d;.   ,o,  .lc. .:c.  'o:.       
.:;.            .x0c.,Ok'     ;o'   ,l;.,l'   'l:.       
.:;.             ,kkcdO;     .:l'   .:l:c;    .lc.       
.::.              ;OK0c      .cl.    .loc.    .cl.       
.'.               .xKo.      .''.     .'.      ',.       
                  'dOl.                                   
                  ,oOk:.                                    
                  .:l,.                                      
Enter fullscreen mode Exit fullscreen mode

Top comments (0)