One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| from google_trans_new import google_translator | |
| from random import randint | |
| def paraphrase(sentence): | |
| """ | |
| returns list of sentences with similar meaning to sentence | |
| """ | |
| language_list = ["ko","fr","ja","id","it","pt","ru","af","sq","am","ar","ca","nl","de","es","tr"] | |
| translator = google_translator() |
| from recipe_scrapers import scrape_me | |
| keyword = input("keyword : ") | |
| region = input("region : ") | |
| loop = 1 | |
| while loop <= 12: | |
| try: | |
| #loopAndGrab | |
| scraper = scrape_me("https://cookpad.com/" + region + "/search/" + keyword + "?page=" + str(loop)) |
| import datetime | |
| from tqdm import tqdm | |
| from recipe_scrapers import scrape_me | |
| from paraphraser import paraphrase | |
| #LineCounter | |
| number_of_lines = len(open('new.txt').readlines( )) | |
| loop = -1 | |
| pbar = tqdm(total = int(number_of_lines)) | |
| while loop <= number_of_lines: |
| baseurl = "https://food.dgml.xyz/" | |
| languageCode = "en-us" | |
| title = "Food Holic" | |
| theme = "hugo-cards" | |
| paginate = 9 |
| import csv | |
| with open('full_dataset.csv') as csvfile: | |
| readCSV = csv.reader(csvfile, delimiter=',') | |
| for row in readCSV: | |
| print(row[1]) |
| i=0; | |
| for f in *; | |
| do | |
| d=dir_$(printf %03d $((i/100+1))); | |
| mkdir -p $d; | |
| mv "$f" $d; | |
| let i++; | |
| done |
| find . -maxdepth 1 -type f -name "*.md" -delete |
| curl -s -v https://namadomain 2>&1 | grep Server |
| # https://github.com/Rowno/sitemap-urls | |
| # npm install -g sitemap-urls | |
| curl https://yoursite/sitemap.xml | sitemap-urls > output.txt |