├── Barrons-800.pdf ├── Barrons333_words.csv ├── Barrons333_words.xlsx ├── Barrons-333-High-Freq-Words.pdf ├── test.csv ├── gui.py ├── scrap.py ├── Barrons333.py └── README.md /Barrons-800.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tasfik007/Barron-s-333-words-and-their-mnemonics/HEAD/Barrons-800.pdf -------------------------------------------------------------------------------- /Barrons333_words.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tasfik007/Barron-s-333-words-and-their-mnemonics/HEAD/Barrons333_words.csv -------------------------------------------------------------------------------- /Barrons333_words.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tasfik007/Barron-s-333-words-and-their-mnemonics/HEAD/Barrons333_words.xlsx -------------------------------------------------------------------------------- /Barrons-333-High-Freq-Words.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tasfik007/Barron-s-333-words-and-their-mnemonics/HEAD/Barrons-333-High-Freq-Words.pdf -------------------------------------------------------------------------------- /test.csv: -------------------------------------------------------------------------------- 1 | Abase,Meaning, abase-abe(a slang used to degrade acvv person)+shhh(se)usually an attempt to degrade a person's opinion..ovral goes to humiliate a person.... ,Powered by Mnemonic Dictionary Abase > to bring someone down back to A BASE level. ," a= no, negative, less & base = base, position, grade.. combinedly lessen the position/grade " 2 | -------------------------------------------------------------------------------- /gui.py: -------------------------------------------------------------------------------- 1 | from tkinter import * 2 | from tkinter import filedialog 3 | 4 | root = Tk() 5 | root.title('GRE Word Lists PDF to Excel Sheets') 6 | 7 | PdfToConvert = 'null' 8 | 9 | 10 | def open(): 11 | global PdfToConvert 12 | root.filename = filedialog.askopenfilename( 13 | initialdir='C:/Users/Acer/Desktop/GRE words war', title='Select a PDF file') 14 | PdfToConvert = root.filename 15 | root.destroy() 16 | 17 | 18 | btn = Button(root, text='Open a pdf file', width=50, command=open) 19 | 20 | 21 | btn.pack(side="top", fill='both', expand=True, padx=40, pady=100) 22 | root.mainloop() 23 | print(PdfToConvert) 24 | -------------------------------------------------------------------------------- /scrap.py: -------------------------------------------------------------------------------- 1 | from bs4 import BeautifulSoup 2 | import requests 3 | import csv 4 | 5 | csv_file = open('test.csv', 'w') 6 | csv_writer = csv.writer(csv_file) 7 | 8 | total_mn = 0 9 | md = [] 10 | 11 | 12 | def getMnemonics(word, no_of_mnemonics): 13 | global total_mn 14 | global md 15 | src = requests.get('https://mnemonicdictionary.com/?word='+word).text 16 | data = BeautifulSoup(src, 'lxml') 17 | for mnemonic in data.find_all('div', class_='card mnemonic-card'): 18 | for content in mnemonic.find_all('div', class_='card-text'): 19 | md.append(content.text) 20 | print(md[total_mn]) 21 | total_mn = total_mn+1 22 | if(total_mn >= no_of_mnemonics): 23 | break 24 | 25 | 26 | cd = ['\n ta', 'na'] 27 | getMnemonics('abase', 3) 28 | print(type(md[0])) 29 | a = 'Tasfik' 30 | b = md[1] 31 | c = md[2] 32 | print(md[0].replace('\n', '')) 33 | csv_writer.writerow(['Abase', 'Meaning', md[0].replace( 34 | '\n', ''), md[1].replace('\n', ''), md[2].replace('\n', '')]) 35 | -------------------------------------------------------------------------------- /Barrons333.py: -------------------------------------------------------------------------------- 1 | from tabula import read_pdf 2 | from tabulate import tabulate 3 | import csv 4 | from tkinter import * 5 | from tkinter import filedialog 6 | from bs4 import BeautifulSoup 7 | import requests 8 | 9 | 10 | csv_file = open('Barrons333_words.csv', 'w') 11 | csv_writer = csv.writer(csv_file) 12 | csv_writer.writerow(['Word', 'Meaning', 'Mnemonic1', 'Mnemonic2', 'Mnemonic3']) 13 | 14 | 15 | root = Tk() 16 | root.title('GRE Word Lists PDF to Excel Sheets') 17 | 18 | PdfToConvert = 'null' 19 | 20 | 21 | def open(): 22 | global PdfToConvert 23 | root.filename = filedialog.askopenfilename( 24 | initialdir='C:/Users/Acer/Desktop/GRE words war', title='Select a PDF file') 25 | PdfToConvert = root.filename 26 | root.destroy() 27 | 28 | 29 | btn = Button(root, text='Open a pdf file', width=50, command=open) 30 | 31 | 32 | btn.pack(side="top", fill='both', expand=True, padx=40, pady=100) 33 | root.mainloop() 34 | 35 | df = read_pdf(PdfToConvert, 36 | pages='all', output_format='json') 37 | words = 0 38 | 39 | 40 | def getMnemonics(word, meaning, no_of_mnemonics): 41 | global csv_writer 42 | total_mn = 0 43 | md = [] 44 | src = requests.get('https://mnemonicdictionary.com/?word='+word).text 45 | data = BeautifulSoup(src, 'lxml') 46 | for mnemonic in data.find_all('div', class_='card mnemonic-card'): 47 | for content in mnemonic.find_all('div', class_='card-text'): 48 | md.append(content.text) 49 | total_mn = total_mn+1 50 | if(total_mn >= no_of_mnemonics): 51 | break 52 | print(word+' '+meaning+' '+md[0]+' '+md[1]+' '+md[2]) 53 | csv_writer.writerow([word, meaning, md[0].replace( 54 | '\n', ''), md[1].replace('\n', ''), md[2].replace('\n', '')]) 55 | 56 | 57 | for pages in df: 58 | for rows in pages['data']: 59 | words = words+1 60 | try: 61 | getMnemonics(rows[0]['text'], rows[1]['text'], 3) 62 | except: 63 | pass 64 | 65 | print() 66 | 67 | print(words) 68 | csv_file.close() 69 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Barron's 333 words and their mnemonics 2 | Fetched Barron's 333 words from pdf & their mnemonics from mnemonicdictionary.com, marged them into CSV format 3 | 4 | ## Packages that you need to have to run this project 5 | [or you can just simply download the excel (*.xlsx) sheet which has the all data you need] 6 | 1. tabula 7 | 2. tabulate 8 | 3. csv 9 | 4. tkinter 10 | 5. BeautifulSoup 11 | 6. requests 12 | 13 | 14 | ##                                                 PROJECT SCREEN SHOTS 15 |

16 |

17 |

18 | 19 |

20 |

21 |

22 |

23 |

24 |

25 | 26 |

27 |

28 |

29 | 30 |

31 |

32 |

33 | --------------------------------------------------------------------------------