Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
183c8a7
added badge (#36)
Logan1x Oct 16, 2017
d702b36
Update README.md (#37)
Logan1x Oct 16, 2017
30c1e2f
image to vector data (#35)
apuayush Oct 17, 2017
0992c26
Develop (#38)
Logan1x Oct 17, 2017
3418ea0
add offline dictionary (#45)
SuryaThiru Oct 18, 2017
07feb30
Sort scripts alphabetically (#48)
szepnapot Oct 19, 2017
e73e017
Set theme jekyll-theme-minimal
Logan1x Oct 20, 2017
a3fc020
Set theme jekyll-theme-architect
Logan1x Oct 20, 2017
c2099a6
Updated readme.md
Logan1x Oct 20, 2017
95940a3
Update README.md
Logan1x Oct 20, 2017
fd7fd85
Update README.md
Logan1x Oct 20, 2017
780965c
Added a python script to download high quality videos and audio using…
Oct 21, 2017
aef61fa
Feature/ftp download (#51)
ehnydeel Oct 23, 2017
4c9f7e4
added URL shortener (#55)
abhinavralhan Oct 24, 2017
e32313e
desciption of the Twitter_retweet_bot script (#54)
iyanuashiri Oct 24, 2017
d21c81e
added script to download formatted tweets from a specific user (#50)
pr0me Oct 24, 2017
8f36229
Meme density correction (#56)
Harshvardhan58 Oct 25, 2017
4275734
added cloud script (#57)
shivamp123 Oct 25, 2017
784ecbd
Update README.md (#59)
iyanuashiri Oct 26, 2017
a1cccde
Twitter retweet bot (#44)
iyanuashiri Oct 26, 2017
6131267
updated readme (#60)
Logan1x Oct 26, 2017
c59952c
Updated README.md (#61)
khushboopaddiyar Oct 26, 2017
90edb4c
Update README.md (#62)
ahadali Oct 26, 2017
f8675d9
Sentiment Analysis of Twitter Feeds (#64)
niharikakrishnan Oct 28, 2017
e8cc152
README.md (#72)
chiraag-jain Oct 28, 2017
01bf840
Edited the readme and arranged alphabetically (#75)
Logan1x Oct 31, 2017
e09e23b
Lost Robot script is added (#63)
dgupta777 Oct 31, 2017
bf8189e
Add new Feature getExternalIp.py (#53)
ehnydeel Oct 31, 2017
161cac8
Add fetch_html script (#52)
zinuzoid Oct 31, 2017
0f9e174
arranged root file directory
Logan1x Nov 7, 2017
91b0352
Added : readme.md (#78)
Logan1x Nov 7, 2017
8b5d00e
Added : Readme.md (#79)
Logan1x Nov 7, 2017
061adda
Merge branch 'develop' into master
Logan1x Nov 7, 2017
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
Prev Previous commit
Next Next commit
add offline dictionary (#45)
* Update README.md

* add dictionary
  • Loading branch information
SuryaThiru authored and Logan1x committed Oct 18, 2017
commit 3418ea04680773ed6524d257d96388a2cffd21f4
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ pip install memedensity
memedensity
```

* ### Handy offline dictionary
A tiny offline dictionary app based on nltk wordnet and pyqt5
```bash
cd dictionary
python app.py
```


* ### Facebook Auto Post
This is python script that log in into facebook and post the status.

Expand Down Expand Up @@ -238,5 +246,6 @@ The following people helped in creating the above content.
* <a href="https://github.com/ishank011" target="_blank">Ishank Arora</a>
* <a href="https://github.com/vis2797" target="_blank">Vishal Sharma</a>
* <a href="https://github.com/apuayush" target="_blank">Apurva Nitanjay</a>
* <a href="https://github.com/SuryaThiru" target="_blank">Surya K</a>

### If you like the project give a star [<img src="Selection_008.png" alt="Star button" align="top">](https://github.com/Logan1x/Python-Scripts)
17 changes: 17 additions & 0 deletions bin/dictionary/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from dict_dialog import Dict_Dialog
from PyQt5.QtWidgets import QApplication, QDialog
import sys


class AppWindow(QDialog):
def __init__(self):
super().__init__()
self.ui = Dict_Dialog()
self.ui.setupUi(self)
self.show()


app = QApplication(sys.argv)
w = AppWindow()
w.show()
sys.exit(app.exec_())
56 changes: 56 additions & 0 deletions bin/dictionary/dict_dialog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
from dictionary import definition
from PyQt5 import QtCore, QtWidgets


class Dict_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dictionary")
Dialog.resize(344, 249)
self.widget = QtWidgets.QWidget(Dialog)
self.widget.setGeometry(QtCore.QRect(10, 10, 321, 236))
self.widget.setObjectName("widget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setContentsMargins(-1, -1, -1, 4)
self.horizontalLayout.setSpacing(6)
self.horizontalLayout.setObjectName("horizontalLayout")
self.searchText = QtWidgets.QLineEdit(self.widget)
self.searchText.setText("")
self.searchText.setObjectName("searchText")
self.horizontalLayout.addWidget(self.searchText)
self.searchButton = QtWidgets.QPushButton(self.widget)
self.searchButton.setObjectName("searchButton")
self.horizontalLayout.addWidget(self.searchButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.resultText = QtWidgets.QTextBrowser(self.widget)
self.resultText.setObjectName("resultText")
self.verticalLayout.addWidget(self.resultText)

# output fonts
font = self.resultText.font()
font.setPointSize(20)

self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
Dialog.setTabOrder(self.searchText, self.searchButton)

# events
self.searchButton.clicked.connect(self.show_definition)

def show_definition(self):
word = self.searchText.text()
defn = definition(word)

if defn != '':
self.resultText.setText(defn)
else:
self.resultText.setText('definition not found')

def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
self.searchText.setPlaceholderText(
_translate("Dialog", "word to search"))
self.searchButton.setText(_translate("Dialog", "search"))
25 changes: 25 additions & 0 deletions bin/dictionary/dictionary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from nltk.corpus import wordnet as wn


def extractInfo(synset):
"""
get string containing definition from a synset
"""
out = synset.pos() + ' : '
out += synset.definition()

return out


def definition(word):
ssets = wn.synsets(word)
defns = list()

for i in ssets:
# ensure words in synsets are same
if i.name().split('.')[0] == word:
info = extractInfo(i)
defns.append(info)

# return defns
return '\n'.join(defns)