Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
98c81d9
Create Ghost filter code.py
A-kriti Mar 26, 2021
63b8777
Add files via upload
A-kriti Mar 26, 2021
86959a7
Create README.md
A-kriti Mar 26, 2021
ddbd0b4
Update README.md
A-kriti Mar 26, 2021
f3d68d0
Update Ghost filter/README.md
A-kriti Mar 26, 2021
71e3db2
Add files via upload
A-kriti Mar 26, 2021
6c98e3b
Update README.md
A-kriti Mar 26, 2021
0d119d8
Update Ghost filter code.py
A-kriti Mar 26, 2021
6dc5a8b
Update Ghost filter code.py
A-kriti Mar 27, 2021
71eead5
Update README.md
A-kriti Mar 27, 2021
e338145
Update Ghost filter code.py
A-kriti Mar 27, 2021
4373ef8
Update Ghost filter code.py
A-kriti Mar 27, 2021
309f916
Qr code genrator using employee detail
Mar 27, 2021
30cdc5b
remove file
Mar 27, 2021
dcf5549
Qr Code Genrator for employee
Mar 27, 2021
3aea18d
Update README.md
A-kriti Mar 27, 2021
46c01a3
Update Ghost filter code.py
A-kriti Mar 27, 2021
e17291c
Update Ghost filter code.py
A-kriti Mar 27, 2021
672b0ce
Update README.md
A-kriti Mar 27, 2021
ec46168
I have revised this file as per requirements.
Mar 27, 2021
ce51a28
removed requirment.txt file
Mar 27, 2021
40aea52
I resolved it. add pip freeze.
Mar 27, 2021
04646ad
Delete Ghost Filtered Image.jpg
A-kriti Mar 28, 2021
fe0d701
Update Ghost filter code.py
A-kriti Mar 28, 2021
a7201c6
Update Ghost filter code.py
A-kriti Mar 28, 2021
d57c10c
Update README.md
A-kriti Mar 28, 2021
4801f30
I have to make Readme file in project
Mar 28, 2021
7b0aa72
Desktop Voice Assistant
sayantani11 Mar 28, 2021
310a020
Made few changes
sayantani11 Mar 28, 2021
44d37bf
x
sayantani11 Mar 29, 2021
e8d0f03
Made changes
sayantani11 Mar 29, 2021
9c3036d
fixed an issue
sayantani11 Mar 29, 2021
b2f78b5
Changed time format
sayantani11 Mar 29, 2021
6742801
Made suggested changes
sayantani11 Mar 30, 2021
680b4cb
Delete pywhatkit_dbs.txt
sayantani11 Mar 30, 2021
eb0d887
Final code with all necessary changes made
sayantani11 Mar 30, 2021
96b7d08
Added Guess The Country Game
Mar 30, 2021
2bb85aa
Added Guess The Country Game
Mar 30, 2021
6a5d663
Added Guess The Country Game
Mar 30, 2021
77f185b
Update READme.md
sayantani11 Mar 31, 2021
b318206
Update READme.md
sayantani11 Mar 31, 2021
b7c2aea
Took Master as input
sayantani11 Mar 31, 2021
3ebb9aa
Image to speech
Amit366 Mar 31, 2021
a27a332
Create minesweeper.py
Ratnesh4193 Mar 31, 2021
f992ade
Create readme.md
Ratnesh4193 Mar 31, 2021
bb9c609
Create mini google assistant.py
A-kriti Mar 31, 2021
c52644b
Create README.md
A-kriti Mar 31, 2021
d5dc077
Removed country.py
Apr 1, 2021
3b1411b
updated main.py
Apr 1, 2021
de16bd7
updated main.py
Apr 1, 2021
024ca90
Update
Amit366 Apr 1, 2021
1e7d7d2
Add Terminal Hangman
Yuvraj-kadale Apr 1, 2021
31515a1
Delete Mini Google Assistant directory
A-kriti Apr 1, 2021
f24c9b3
Add pep8 style formatting
Yuvraj-kadale Apr 1, 2021
e839387
Add Readme.md
Yuvraj-kadale Apr 1, 2021
027253c
Update Readme.md
Yuvraj-kadale Apr 1, 2021
e945d27
Facebook bot
Amit366 Apr 1, 2021
00ef98b
Readme
Amit366 Apr 1, 2021
8d8af3d
added restart game feature
Ratnesh4193 Apr 1, 2021
9f61bec
added Stopwatch_gui.py
aishwaryachand Apr 1, 2021
ac7ec51
added README.md
aishwaryachand Apr 1, 2021
8700b36
added stopwatch_images
aishwaryachand Apr 1, 2021
c848590
Change in image store link
Apr 2, 2021
53553ba
Updated
Amit366 Apr 2, 2021
909dd10
Update
Amit366 Apr 2, 2021
a86c3d8
Updated README
Apr 2, 2021
0f83614
Updated README
Apr 2, 2021
c6f2f1c
Added age calculator gui
mehabhalodiya Apr 2, 2021
fbed5cd
Update Ghost filter code.py
A-kriti Apr 2, 2021
193c502
My word list from .txt file
Yuvraj-kadale Apr 2, 2021
e0cfc01
add readme.md update
Yuvraj-kadale Apr 2, 2021
d49228c
add .txt word file
Yuvraj-kadale Apr 2, 2021
2a43f37
delete folder qr code genrator for employee
Apr 3, 2021
e002080
Update Terminal Hangman/T_hangman.py
Yuvraj-kadale Apr 3, 2021
4b1d75f
Added README.md
mehabhalodiya Apr 3, 2021
813aad4
Made suggested changes
Apr 3, 2021
54cfc57
Update
Amit366 Apr 3, 2021
3e235ab
SMS automation
Amit366 Apr 4, 2021
ac55382
Update
Amit366 Apr 5, 2021
c67077c
added distance unit conversion gui
tanvi355 Apr 5, 2021
1dc6303
Create README.md
tanvi355 Apr 5, 2021
fe8ddf7
Update README.md
tanvi355 Apr 5, 2021
5cd120f
Update distance_conversion.py
tanvi355 Apr 5, 2021
1e0f037
Bag of words model
zaverisanya Apr 5, 2021
c12ed9e
Added script for codechef scrapper
Apr 5, 2021
6e34fd6
Update Readme.md
santushtisharma10 Apr 6, 2021
321e32d
Update image_to_speech.py
Amit366 Apr 6, 2021
3a99cda
Update QR-code-Genrator/main.py
Goheljay Apr 6, 2021
2999f2a
Update QR-code-Genrator/main.py
Goheljay Apr 6, 2021
784a115
Making README.md more readable.
smriti26raina Apr 6, 2021
ccbdc6e
Update requirements.txt
smriti26raina Apr 6, 2021
f1cae34
Updated the script
Apr 6, 2021
a4ef131
add all sugesstion in main.py and make requirement.txt file
Apr 6, 2021
45b39bf
comiit all cahnges
Apr 6, 2021
ee2c45a
Merge branch 'qr-code' of https://github.com/Goheljay/Amazing-Python-…
Apr 6, 2021
4ae4822
Added Script for Scripts.json
Sukriti-sood Apr 6, 2021
bb9d674
scraper file added
Ayushjain2205 Apr 7, 2021
9a4ceda
requirements file added
Ayushjain2205 Apr 7, 2021
728ca44
Readme file added
Ayushjain2205 Apr 7, 2021
0a13939
removed border of "from" and "to" label
tanvi355 Apr 7, 2021
06917ed
Delete dist_conv1.PNG
tanvi355 Apr 7, 2021
19e3fa1
Delete dist_conv2.PNG
tanvi355 Apr 7, 2021
ca1493f
Delete dist_conv3.PNG
tanvi355 Apr 7, 2021
9d5ee6f
Add files via upload
tanvi355 Apr 7, 2021
637d7b7
Update Bag of words model/README.md
zaverisanya Apr 7, 2021
5ea692d
Update Bag of words model/README.md
zaverisanya Apr 7, 2021
ba4669d
Update Bag of words model/bow.py
zaverisanya Apr 7, 2021
f50bde4
Update minesweeper.py
Ratnesh4193 Apr 7, 2021
2282255
Updated the script to add problem links
Apr 7, 2021
469a091
Update README.md
smriti26raina Apr 7, 2021
127b4a6
Update README.md
smriti26raina Apr 7, 2021
e962f5a
Update
Amit366 Apr 7, 2021
1e489ab
Delete Stopwatch_gui.py
aishwaryachand Apr 7, 2021
d766642
added stopwatch_gui py with changes
aishwaryachand Apr 7, 2021
52326f3
Update stopwatch_gui.py
aishwaryachand Apr 7, 2021
8acccdf
Update README.md
aishwaryachand Apr 7, 2021
7705143
deleted bowp.xlsx
zaverisanya Apr 8, 2021
83cb424
Update MineSweeper/readme.md
Ratnesh4193 Apr 8, 2021
cad9e21
Update MineSweeper/readme.md
Ratnesh4193 Apr 8, 2021
0652a60
Update minesweeper.py
Ratnesh4193 Apr 8, 2021
c70cbed
File moved
Sukriti-sood Apr 8, 2021
a91c14e
Update
Amit366 Apr 8, 2021
e496ac9
Create photo_to_ascii.py
Avishake007 Apr 8, 2021
d401847
Create README.md
Avishake007 Apr 8, 2021
3e69f43
Update README.md
Avishake007 Apr 8, 2021
3d4dca8
Update photo_to_ascii.py
Avishake007 Apr 9, 2021
4109ed0
Update photo_to_ascii.py
Avishake007 Apr 9, 2021
c775d3e
Update photo_to_ascii.py
Avishake007 Apr 9, 2021
c090bdc
Update README.md
Avishake007 Apr 9, 2021
5f70125
Fixed bug
mehabhalodiya Apr 9, 2021
cbee12c
i remove unnecessary module in requirment.txt file
Apr 9, 2021
5149e7f
Merge pull request #743 from A-kriti/master
avinashkranjan Apr 10, 2021
60f9735
Merge pull request #766 from sayantani11/desktop_assistant
avinashkranjan Apr 10, 2021
5a4b79f
Merge pull request #782 from Shubhrima/issue-778
avinashkranjan Apr 10, 2021
794a4c4
Merge pull request #786 from Amit366/Amit
avinashkranjan Apr 10, 2021
bb8220f
Merge pull request #792 from Ratnesh4193/master
avinashkranjan Apr 10, 2021
e7d2a17
Merge pull request #796 from Yuvraj-kadale/hangman
avinashkranjan Apr 10, 2021
3d3b65c
Merge pull request #860 from Goheljay/qr-code
avinashkranjan Apr 10, 2021
91e787a
Merge pull request #855 from Avishake007/photo_to_ascii.py
avinashkranjan Apr 10, 2021
2ac8f5e
Merge pull request #837 from smriti26raina/issue-754
avinashkranjan Apr 10, 2021
b58c72c
Merge pull request #836 from zaverisanya/master
avinashkranjan Apr 10, 2021
096ac16
Merge pull request #832 from tanvi355/master
avinashkranjan Apr 10, 2021
a4381f0
Merge pull request #839 from Ayushjain2205/MonsterJobs-scraper
avinashkranjan Apr 10, 2021
c29c20d
Merge pull request #838 from Sukriti-sood/Feature
avinashkranjan Apr 10, 2021
794e3e3
Merge pull request #824 from Amit366/Amit2
avinashkranjan Apr 10, 2021
e673ab3
Merge pull request #808 from mehabhalodiya/agecalc
avinashkranjan Apr 10, 2021
b40033d
Merge pull request #801 from aishwaryachand/stopwatch
avinashkranjan Apr 10, 2021
9f19b9a
Merge pull request #797 from Amit366/Amit1
avinashkranjan Apr 10, 2021
96c8f0e
[ImgBot] Optimize images
ImgBotApp Apr 10, 2021
cd99401
Merge pull request #873 from avinashkranjan/imgbot
avinashkranjan Apr 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Age-Calculator-GUI/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Age Calculator GUI

In this age calculator app, users can type in their date of birth, and the app will calculate and display their age.

## Step 1:

First of all, we need to import two libraries into our code. The first one is the *tkinter* library. Then, we need the *datetime* library to work with dates.

## Step 2:

Now, let’s create a simple window for our app and name it as *Age Calculator*.

## Step 3:

Then, we are going to create four labels, each for the name, year, month, and the date, and put them in the grid.

We will create entry fields to get the user inputs corresponding to all the labels created. Put them at the right side of the corresponding labels using the *grid* method.

## Step 4:

Then, we are going to define a function, which will calculate the age of the user by subtracting the user’s birth date from today’s date. We name that function as `ageCalc()`.

Then, we create a `Label` area that will display the age of the user as output in the function itself.

## Step 5:

Then, we are going to create a button for users to submit their input values. We link the button to the `ageCalc` function.

Finally, let’s run everything inside the window using the `mainloop()` method.
59 changes: 59 additions & 0 deletions Age-Calculator-GUI/age_calc_gui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# import libraries
from tkinter import *
from datetime import date

# initialized window
root = Tk()
root.geometry('280x300')
root.resizable(0,0)
root.title('Age Calculator')
statement = Label(root)

# defining the function for calculating age
def ageCalc():
global statement
statement.destroy()
today = date.today()
birthDate = date(int(yearEntry.get()), int(monthEntry.get()), int(dayEntry.get()))
age = today.year - birthDate.year
if today.month < birthDate.month or today.month == birthDate.month and today.day < birthDate.day:
age -= 1
statement = Label(text=f"{nameValue.get()}'s age is {age}.")
statement.grid(row=6, column=1, pady=15)

# creating a label for person's name to display
l1 = Label(text = "Name: ")
l1.grid(row=1, column=0)
nameValue = StringVar()

# creating a entry box for input
nameEntry = Entry(root, textvariable=nameValue)
nameEntry.grid(row=1, column=1, padx=10, pady=10)

# label for year in which user was born
l2 = Label(text = "Year: ")
l2.grid(row=2, column=0)
yearValue = StringVar()
yearEntry = Entry(root, textvariable=yearValue)
yearEntry.grid(row=2, column=1, padx=10, pady=10)

# label for month in which user was born
l3 = Label(text = "Month: ")
l3.grid(row=3, column=0)
monthValue = StringVar()
monthEntry = Entry(root, textvariable=monthValue)
monthEntry.grid(row=3, column=1, padx=10, pady=10)

# label for day/date on which user was born
l4 = Label(text = "Day: ")
l4.grid(row=4, column=0)
dayValue = StringVar()
dayEntry = Entry(root, textvariable=dayValue)
dayEntry.grid(row=4, column=1, padx=10, pady=10)

# create a button for calculating age
button = Button(text="Calculate age", command=ageCalc)
button.grid(row=5, column=1)

# infinite loop to run program
root.mainloop()
35 changes: 35 additions & 0 deletions Automate Facebook bot/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# <b>Automate Facebook bot</b>

[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)

## Automate Facebook bot Functionalities : 🚀

- On running the script it posts your message in the groups whose id is given by the user

## Automate Facebook bot Instructions: 👨🏻‍💻

### Step 1:

Open Termnial 💻

### Step 2:

Locate to the directory where python file is located 📂

### Step 3:

Run the command: python script.py/python3 script.py 🧐

### Step 4:

Sit back and Relax. Let the Script do the Job. ☕

### Requirements

- pyautogui
- time

## Author

Amit Kumar Mishra

68 changes: 68 additions & 0 deletions Automate Facebook bot/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import pyautogui
import time
import webbrowser
from selenium import webdriver
from time import sleep
from webdriver_manager.chrome import ChromeDriverManager
from getpass import getpass


LOGIN_URL = 'https://www.facebook.com/login.php'
num = str (input ("Enter group ids separated by commas: "))
lists = num.split (",")
groupid = []
for i in lists:
groupid.append(i)


message=input("Enter your message: ")

class FacebookLogin():
def __init__(self, email, password, browser='Chrome'):
# Store credentials for login
self.email = email
self.password = password
if browser == 'Chrome':
# Use chrome
self.driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())
self.driver.get(LOGIN_URL)
time.sleep(1) # Wait for some time to load


def login(self):
email_element = self.driver.find_element_by_id('email')
email_element.send_keys(self.email) # Give keyboard input

password_element = self.driver.find_element_by_id('pass')
password_element.send_keys(self.password) # Give password as input too

login_button = self.driver.find_element_by_id('loginbutton')
login_button.click() # Send mouse click

time.sleep(2) # Wait for 2 seconds for the page to show up

for i in range(len(groupid)):
link = 'https://facebook.com/groups/'+groupid[i]
self.driver.get(link)
print("Waiting for few seconds .......")
time.sleep(45)
self.driver.find_element_by_class_name('a8c37x1j ni8dbmo4 stjgntxs l9j0dhe7').click()
time.sleep(7)

self.driver.switch_to.active_element.send_keys("message")
time.sleep(7)

self.driver.find_element_by_class_name('a8c37x1j ni8dbmo4 stjgntxs l9j0dhe7 ltmttdrg g0qnabr5').click()
time.sleep(7)


if __name__ == '__main__':
# Enter your login credentials here
usr=input('Enter Email Id:')
pwd= getpass('Enter Password:')
fb_login = FacebookLogin(email=usr, password=pwd, browser='Chrome')
fb_login.login()

#time.sleep(5)


32 changes: 32 additions & 0 deletions Bag of words model/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Package/Script Name

-->Package installed- NLKT
- NLTK stands for 'Natural Language Tool Kit'. It consists of the most common algorithms such as tokenizing, part-of-speech tagging, stemming, sentiment analysis, topic segmentation, and named entity recognition. NLTK helps the computer to analysis, preprocess, and understand the written text.

--> Pandas
- pandas is a library where your data can be stored, analyzed and processed in row and column representation

--> from sklearn.feature_extraction.text import CountVectorizer
- Scikit-learn's CountVectorizer is used to convert a collection of text documents to a vector of term/token counts. It also enables the ​pre-processing of text data prior to generating the vector representation. This functionality makes it a highly flexible feature representation module for text.

## Setup instructions

1) Input the sentences you would like to vectorize.
2) The script will tokenize the sentences.
3) It will transform the text to vectors where each word and its count is a feature.
4) Then the bag of word model is ready.
5) create dataframe where dataFrame is an analogy to excel-spreadsheet.
6) Open excel and check the 'bowp.xlsx' where sheet name is 'data'. The dataframe will be stored over there.


## Output

![Image](https://i.postimg.cc/pLQq8Vdc/output.png)

## Author(s)

- This code is written by [Sanya Devansh Zaveri](https://github.com/zaverisanya)

## Disclaimers, if any

There are no disclaimers for this script.
33 changes: 33 additions & 0 deletions Bag of words model/bow.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from sklearn.feature_extraction.text import CountVectorizer
import nltk
import pandas as pd #pandas is a library where your data can be stored, analyzed and processed in row and column representation
from openpyxl import Workbook
sentences=input("Enter your sentences: ")
#eg. My name is sanya. I am caring and loving. I am generous.
#converting to lower case (normalization)
sentences=sentences.lower()
#sentence tokenized
tokenized_sentences=nltk.tokenize.sent_tokenize(sentences)
print(tokenized_sentences)
tokenized_sentences1=[]
for x in tokenized_sentences:
x=x.replace(".","") #removed .
tokenized_sentences1.append(x)
print(tokenized_sentences1) #list of word can be converted to set to get unique words
#instantiating CountVectorizer()
countVectorizer=CountVectorizer() #BOW
#transforming text from to vectors where each word and its count is a feature
tmpbow=countVectorizer.fit_transform(tokenized_sentences1)#pass list of sentences as arguments
print("tmpbow \n",tmpbow) #bag of word model is ready

bow=tmpbow.toarray()
print("Vocabulary = ",countVectorizer.vocabulary_)
print("Features = ",countVectorizer.get_feature_names())
#Features in machine learning are nothing but names of the columns
print("BOW ",bow)

#create dataframe #DataFrame is an analogy to excel-spreadsheet
cv_dataframe=pd.DataFrame(bow,columns=countVectorizer.get_feature_names())

print("cv_dataframe is below\n",cv_dataframe)
cv_dataframe.to_excel('./Bag of words model/bowp.xlsx', sheet_name='data')
40 changes: 40 additions & 0 deletions Codechef Scrapper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Codechef Scraper
This python script will let the user to scrape 'n' number of codechef problems from any category/difficulty in https://www.codechef.com/ ,as provided by the user. The functionality of the script is to gain the information regarding particular codechef problem in different PDFs.


## Prerequisite Steps:
Download the required packages from the following command in you terminal.(Make sure you're in the same project directory)

```
pip3 install -r requirements.txt

```

To run this script,you need to have selenium installed and configure webdriver to use chrome browser in your`$PATH`.You can directly download chrome driver from the link below-
https://chromedriver.chromium.org/downloads
Further,you can set the path to chromedriver using

```
driver = webdriver.chrome("/usr/lib/chromium-browser/chromedriver")

```



## Running the script:
After installing all the requirements,run this command in your terminal.

```
python3 codechef.py

```

## Output:
This script will generate 'n' number of different PDFs in a folder to store the problem information (problem title,problem statement,test cases,problem link) separately.

![image](https://user-images.githubusercontent.com/30191221/113629602-46a4ff80-9684-11eb-8938-c6e8f934d3ae.png)

![image](https://user-images.githubusercontent.com/30191221/113629697-64726480-9684-11eb-9d14-3b1ac515d40e.png)

Author:
[Smriti Raina](https://github.com/smriti26raina)
Loading