Quick Tags For Your Lens [Beginners]

This is a Simple Script written in Python. Purpose is to get Tags just by adding two inputs. First input will search for Tags for your respective word. Second take 1 or 2 as input to get two type of variation.

from requests import get as req
from bs4 import BeautifulSoup as bs

def tags(text,n):
    url = f"http://best-hashtags.com/hashtag/{text}/"
    html = req(url).content
    soup = bs(html,'lxml')
    if n == 1:
        for i in (soup.p1.text.replace(' ','\n').split('\n')):
            if (len(i) >= 4):
                print(i)
    if n == 2:
        for i in (soup.p2.text.replace(' ','\n').split('\n')):
            if (len(i) >= 4):
                print(i)

print('tags("<YOUR WORD>",1 OR 2)')

Run and enter input like this.

tags("lens",1)


#lens
#photography
#contactlens
#lensmurah
#camera
#canon
#softlens
#dreamcolor
#photographer
#makeup
#lenses
#photo
#contactlensmalaysia
#contactlensmurah
#contactlenses
#lenskorea
#fashion
#photooftheday
#nikon
#beauty
#nature
#bigeyes
#lenscantik
#noblukmurah
#lensmurahmalaysia
#lensnobluk