-
Notifications
You must be signed in to change notification settings - Fork 0
/
digiter.py
37 lines (35 loc) · 1.12 KB
/
digiter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import app
def main():
inp = input("\n<< Digiter - Webversion (https://digiterbee.herokuapp.com) >> \n 1 > To Generate Meta tag for website headers \n 2 > To Generate Sitemap.xml \n 3 > To Check Keyword Density \n 4 > To Check Google Rank\n 5 > To Generate robots.txt \n 0 > To Exit ->")
if (inp=="1"):
website=input("-> Enter your website : ")
app.getMeta(website)
main()
elif(inp=="2"):
website=input("-> Enter your website : ")
app.sitemap_genarator(website)
main()
elif(inp=="3"):
website=input("-> Enter your website : ")
app.keyword_density(website)
main()
elif(inp=="4"):
url=input("-> Enter your Website : ")
keyw=input("-> Enter your Keyword : ")
device=input("-> Enter 'desktop' or 'mobile' : ")
app.rank(url,keyw,device)
main()
elif(inp=="5"):
agent=input("-> Enter Agent name or * : ")
disallow=input("-> Enter Link not to allow : ")
allow=input("-> Enter Link to allow : ")
site=input("-> Enter your sitemap.xml link")
robots(agent,disallow,allow,site)
main()
elif(inp=="0"):
exit()
else:
print("Kindly Enter allowed input value.")
main()
if __name__ == "__main__":
main()