Skip to content

6. Classes

Javinator9889 edited this page Aug 13, 2018 · 4 revisions

TimeLimit

TimeLimit defines possible time combinations for delimiting results.

from pyGle.values import TimeLimit
  • setDay(self), which will find results of the latest 24 hours.
  • setWeek(self), which will find results of the latest 7 days.
  • setMonth(self), which will find results of the latest month.
  • setYear(self), which will find results of the latest year.

Languages

Languages defines the user selected language for the results.

from pyGle.values import Languages
  • show_languages(self): prints a list of the available languages.
  • setLanguage(self, language: AvailableLanguages): saves the user language from AvailableLanguages object.

Countries

Countries defines the user selected country.

from pyGle.values import Countries
  • show_countries(self): prints a list of the available countries.
  • setCountry(self, country: AvailableCountries): saves the user country from AvailableCountries object.

Dates

Dates defines one or two dates for delimiting the results.

from pyGle.values import Dates
  • setFirstDate(self, day: int, month: int, year: int): sets the first date.
  • setSecondDate(self, day: int, month: int, year: int): sets the second date.

Rights

Rights defines the rights of the results.

from pyGle.values import Rights
  • setFreeToUse(self)
  • setFreeToUseCommerciallyAlso(self)
  • setFreeToUseAndModify(self)
  • setFreeToUseAndModifyCommerciallyAlso(self)

GooglePages

GooglePages: contains the Google Page that will be searched.

from pyGle.values import GooglePages
  • searchImage(self): search at Google Images.
  • searchNews(self): search at Google News.
  • searchBooks(self): search at Google Books.
  • searchShops(self): search at Google Shops.
  • searchVideos(self): search at Google Videos.
  • searchPatents(self): search at Google Patents.

AvailableCountries

AvailableCountries contains all the available countries.

from pyGle.values import AvailableCountries

List of available countries:

  • Afghanistan
  • AlandIslands
  • Albania
  • Algeria
  • AmericanSamoa
  • Andorra
  • Angola
  • Anguilla
  • Antarctica
  • AntiguaAndBarbuda
  • Argentina
  • Armenia
  • Aruba
  • Australia
  • Austria
  • Azerbaijan
  • Bahamas
  • Bahrain
  • Bangladesh
  • Barbados
  • Belarus
  • Belgium
  • Belize
  • Benin
  • Bermuda
  • Bhutan
  • Bolivia
  • BosniaAndHerzegovina
  • Botswana
  • BouvetIsland
  • Brazil
  • BritishIndianOceanTerritory
  • BruneiDarussalam
  • Bulgaria
  • BurkinaFaso
  • Burundi
  • Cambodia
  • Cameroon
  • Canada
  • CapeVerde
  • CaymanIslands
  • CentralAfricanRepublic
  • Chad
  • Chile
  • China
  • ChristmasIsland
  • CocosIslands
  • Colombia
  • Comoros
  • Congo
  • CongoDemocraticRepublic
  • CookIslands
  • CostaRica
  • CoteDIvoire
  • Croatia
  • Cuba
  • Cyprus
  • CzechRepublic
  • Denmark
  • Djibouti
  • Dominica
  • DominicanRepublic
  • Ecuador
  • Egypt
  • ElSalvador
  • EquatorialGuinea
  • Eritrea
  • Estonia
  • Ethiopia
  • FalklandIslands
  • FaroeIslands
  • Fiji
  • Finland
  • France
  • FrenchGuiana
  • FrenchPolynesia
  • FrenchSouthernTerritories
  • Gabon
  • Gambia
  • Georgia
  • Germany
  • Ghana
  • Gibraltar
  • Greece
  • Greenland
  • Grenada
  • Guadeloupe
  • Guam
  • Guatemala
  • Guernsey
  • Guinea
  • GuineaBissau
  • Guyana
  • Haiti
  • HeardIslandAndMcdonaldIslands
  • HolySeeVaticanCityState
  • Honduras
  • HongKong
  • Hungary
  • Iceland
  • India
  • Indonesia
  • Iran
  • Iraq
  • Ireland
  • IsleOfMan
  • Israel
  • Italy
  • Jamaica
  • Japan
  • Jersey
  • Jordan
  • Kazakhstan
  • Kenya
  • Kiribati
  • NorthKorea
  • SouthKorea
  • Kosovo
  • Kuwait
  • Kyrgyzstan
  • Laos
  • Latvia
  • Lebanon
  • Lesotho
  • Liberia
  • LibyanArabJamahiriya
  • Liechtenstein
  • Lithuania
  • Luxembourg
  • Macao
  • Macedonia
  • Madagascar
  • Malawi
  • Malaysia
  • Maldives
  • Mali
  • Malta
  • MarshallIslands
  • Martinique
  • Mauritania
  • Mauritius
  • Mayotte
  • Mexico
  • Micronesia
  • Moldova
  • Monaco
  • Mongolia
  • Montserrat
  • Morocco
  • Mozambique
  • Myanmar
  • Namibia
  • Nauru
  • Nepal
  • Netherlands
  • NetherlandsAntilles
  • NewCaledonia
  • NewZealand
  • Nicaragua
  • Niger
  • Nigeria
  • Niue
  • NorfolkIsland
  • NorthernMarianaIslands
  • Norway
  • Oman
  • Pakistan
  • Palau
  • PalestinianTerritoryOccupied
  • Panama
  • PapuaNewGuinea
  • Paraguay
  • Peru
  • Philippines
  • Pitcairn
  • Poland
  • Portugal
  • PuertoRico
  • Qatar
  • Reunion
  • Romania
  • RussianFederation
  • Rwanda
  • SaintHelena
  • SaintKittsAndNevis
  • SaintLucia
  • SaintPierreAndMiquelon
  • SaintVincentAndTheGrenadines
  • Samoa
  • SanMarino
  • SaoTomeAndPrincipe
  • SaudiArabia
  • Senegal
  • Serbia
  • Montenegro
  • Seychelles
  • SierraLeone
  • Singapore
  • Slovakia
  • Slovenia
  • SolomonIslands
  • Somalia
  • SouthAfrica
  • SouthGeorgiaAndTheSouthSandwichIslands
  • Spain
  • SriLanka
  • Sudan
  • Suriname
  • SvalbardAndJanMayen
  • Swaziland
  • Sweden
  • Switzerland
  • SyrianArabRepublic
  • TaiwanProvinceOfChina
  • Tajikistan
  • Tanzania
  • Thailand
  • TimorLeste
  • Togo
  • Tokelau
  • Tonga
  • TrinidadAndTobago
  • Tunisia
  • Turkey
  • Turkmenistan
  • TurksAndCaicosIslands
  • Tuvalu
  • Uganda
  • Ukraine
  • UnitedArabEmirates
  • UnitedKingdom
  • UnitedStates
  • UnitedStatesMinorOutlyingIslands
  • Uruguay
  • Uzbekistan
  • Vanuatu
  • Venezuela
  • Vietnam
  • VirginIslandsBritish
  • VirginIslandsUS
  • WallisAndFutuna
  • WesternSahara
  • Yemen
  • Zambia
  • Zimbabwe

AvailableLanguages

AvailableLanguages contains the list of the languages available for searching the results.

from pyGle.values import AvailableLanguages

List of available languages:

  • Arabic
  • Armenian
  • Belorussian
  • Bulgarian
  • Catalan
  • Croatian
  • Czech
  • Danish
  • Dutch
  • English
  • Esperanto
  • Estonian
  • Filipino
  • Finnish
  • French
  • German
  • Greek
  • Hebrew
  • Hungarian
  • Icelandic
  • Indonesian
  • Italian
  • Japanese
  • Korean
  • Latvian
  • Lithuanian
  • Norwegian
  • Persian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Serbian
  • Slovak
  • Slovenian
  • Spanish
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese
  • ChineseSimplified
  • ChineseTraditional

InterfaceLanguages

InterfaceLanguages contains all the available languages for the interface.

from pyGle.values import InterfaceLanguages

List of available interface languages:

  • Afrikaans
  • Luo
  • Akan
  • Amharic
  • Arabic
  • Azerbaijani
  • Belorussian
  • Bemba
  • Bulgarian
  • Bihari
  • Bengali
  • Armenian
  • Basque
  • Bork
  • Bosnian
  • Cambodian
  • Catalan
  • Cherokee
  • Chichewa
  • ChineseSimplified
  • ChineseTraditional
  • Corsican
  • Croatian
  • Czech
  • Danish
  • Dutch
  • ElmerFudd
  • English
  • Esperanto
  • Estonian
  • Ewe
  • Faroese
  • Filipino
  • Finnish
  • French
  • Frisian
  • Ga
  • Galician
  • Georgian
  • German
  • Greek
  • Guarani
  • Gujarati
  • Hacker
  • HaitianCreole
  • Hausa
  • Hawaiian
  • Hebrew
  • Hindi
  • Hungarian
  • Icelandic
  • Igbo
  • Indonesian
  • Interlingua
  • Irish
  • Italian
  • Japanese
  • Javanese
  • Kannada
  • Kazakh
  • Kinyarwanda
  • Kirundi
  • Klingon
  • Kongo
  • Korean
  • KrioSierraLeone
  • Kurdish
  • KurdishSorani
  • Kyrgyz
  • Laothian
  • Latin
  • Latvian
  • Lingala
  • Lithuanian
  • Lozi
  • Luganda
  • Macedonian
  • Malagasy
  • Malay
  • Malayalam
  • Maltese
  • Maori
  • Marathi
  • MauritianCreole
  • Moldavian
  • Mongolian
  • Montenegrin
  • Nepali
  • NigerianPidgin
  • NorthernSotho
  • Norwegian
  • NorwegianNynorsk
  • Occitan
  • Oriya
  • Oromo
  • Pashto
  • Persian
  • Pirate
  • Polish
  • PortugueseBrazil
  • PortuguesePortugal
  • Punjabi
  • Quechua
  • Romanian
  • Romansh
  • Runyakitara
  • Russian
  • ScotsGaelic
  • Serbian
  • SerboCroatian
  • Sesotho
  • Setswana
  • SeychelloisCreole
  • Shona
  • Sindhi
  • Sinhalese
  • Slovak
  • Slovenian
  • Somali
  • Spanish
  • SpanishLatinAmerican
  • Sundanese
  • Swahili
  • Swedish
  • Tajik
  • Tamil
  • Tatar
  • Telugu
  • Thai
  • Tigrinya
  • Tonga
  • Tshiluba
  • Tumbuka
  • Turkish
  • Turkmen
  • Twi
  • Uighur
  • Ukrainian
  • Urdu
  • Uzbek
  • Vietnamese
  • Welsh
  • Wolof
  • Xhosa
  • Yiddish
  • Yoruba
  • Zulu
  • Albanian

OptionsForPatents

OptionsForPatents contains different customizations for patents.

from pyGle.values import OptionsForPatents

Here we have different classes:

OfficePatents

OfficePatents contains the available office patents.

from pyGle.values.OptionsForPatents import OfficePatents

List of office patents:

  • USA
  • Europe
  • International
  • China
  • Germany
  • Canada

PatentStatus

PatentStatus contains the available patent status

from pyGle.values.OptionsForPatents import PatentStatus

List of available patent status:

  • Applications
  • IssuedPatents

AvailablePatentTypes

AvailablePatentTypes contains the available types of patents.

from pyGle.values.OptionsForPatents import AvailablePatentTypes

List of available patent types:

  • Utility
  • Design
  • Plant
  • DefensivePublication
  • AdditionalImprovement
  • StatutoryInventionRegistration

OptionsForPictures

OptionsForPictures contains the different customizations for image searching.

from pyGle.values import OptionsForPictures

Inside OptionsForPictures, we have different customizations:

AvailableColors

AvailableColors contains a list of the available colors for the pictures.

from pyGle.values.OptionsForPictures import AvailableColors

List of available colors:

  • Red
  • Orange
  • Yellow
  • Green
  • Teal
  • Blue
  • Purple
  • Pink
  • White
  • Gray
  • Black
  • Brown

AvailableColorsType

AvailableColorsType contains a list of color types that are available for searching pictures.

from pyGle.values.OptionsForPictures import AvailableColorsType

List of available colors type:

  • Full_color
  • Black_and_white
  • Transparent

AvailableRights

AvailableRights contains a list of the rights that can be applied to a search. Do not misuse with Rights

from pyGle.values.OptionsForPictures import AvailableRights

List of available rights:

  • Labeled_for_reuse_with_modifications
  • Labeled_for_reuse
  • Labeled_for_noncommercial_reuse_with_modification
  • Labeled_for_noncommercial_reuse

AvailableSizes

AvailableSizes contains a list of the available sizes for delimiting results.

from pyGle.values.OptionsForPictures import AvailableSizes

List of available sizes:

  • Large
  • Medium
  • Icon
  • BiggerThan400x300
  • BiggerThan640x480
  • BiggerThan800x600
  • BiggerThan1024x768
  • BiggerThan2MP
  • BiggerThan4MP
  • BiggerThan6MP
  • BiggerThan8MP
  • BiggerThan10MP
  • BiggerThan12MP
  • BiggerThan15MP
  • BiggerThan20MP
  • BiggerThan40MP
  • BiggerThan70MP

AvailableImagesType

AvailableImagesType contains a list of the available types of images.

from pyGle.values.OptionsForPictures import AvailableImagesType

List of available image type:

  • Face
  • Photo
  • Clip_art
  • Line_drawing
  • Animated

AvailableAspectRatios

AvailableAspectRatios contains a list of the available aspec ratios for images.

from pyGle.values.OptionsForPictures import AvailableAspectRatios

List of available aspect ratios:

  • Tall
  • Square
  • Wide
  • Panoramic

AvailableImageFormats

AvailableImageFormats contains a list with the available file extensions for pictures.

from pyGle.values.OptionsForPictures import AvailableImageFormats

List of available image formats:

  • jpg
  • gif
  • png
  • bmp
  • svg
  • webp
  • ico

<<< Previous page - Next page >>>