# Google says don't use this script: https://twitter.com/methode/status/783733724655517696 # This script is a violation of Google Terms of Service. Don't use it. import requests import csv import os import time from bs4 import BeautifulSoup from urllib.parse import urlencode seconds = input('Enter number of seconds to wait between URL checks: ') output = os.path.join(os.path.dirname(__file__), input('Enter a filename (minus file extension): ')+'.csv') urlinput = os.path.join(os.path.dirname(__file__), input('Enter input text file: ')) urls = open(urlinput, "r") proxies = { 'https' : 'https://localhost:8123', 'http' : 'http://localhost:8123' } user_agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36' headers = { 'User-Agent' : user_agent} f = csv.writer(open(output, "w+", newline="\n", encoding="utf-8")) f.writerow(["URL", "Indexed"]) for line in iter(urls): query = {'q': 'info:' + line} google = "https://www.google.com/search?" + urlencode(query) data = requests.get(google, headers=headers, proxies=proxies) data.encoding = 'ISO-8859-1' soup = BeautifulSoup(str(data.content), "html.parser") try: check = soup.find(id="rso").find("div").find("div").find("h3").find("a") href = check['href'] f.writerow([line,"True"]) print(line + " is indexed!") except AttributeError: f.writerow([line,"False"]) print(line + " is NOT indexed!") print("Waiting " + str(seconds) + " seconds until checking next URL.\n") time.sleep(float(seconds)) urls.close() INDIA'S TECHNOLOGY IS STARTING A BLOG AND BLOGGING STILL WORTH IT IN 2021

IS STARTING A BLOG AND BLOGGING STILL WORTH IT IN 2021


Do Blogging truly worthwhile in 2021 Absolutely affirmative, blogging still best on-line business for article promoting. Blogging ne'er gets recent during this digital world.world with packed with technology, each one uses gadgets as mobiles, PCs, laptops and additional they are doing have web. people do searches on google for some data like approaching gadgets, Technologies, news and additional. What are Platforms for Blogging Blogging has additional platforms however from my suggestion the 2 Platforms ar best one is paid and alternative is totally free WordPress and Blogger WordPress is bit high-priced than blogger. WordPress may be a self hosted platform you would like to get plans supported your necessities. blogger may be a free platform for being a product of google. currently let ME tell you why blogger may be a free platform and WordPress may be a paid platform options of WordPress and Blogger WordPress has additional options we are able to say it holds premium options. WordPress comes with plugins, templates and a few superb styles. but bloggers does not has options plugins. you are doing not got to pay single cash to begin a blogging on blogger as a result of it's unlimited information measure and free hosting. in WordPress we'd like purchase hosting as external.

Post a Comment

0 Comments