#! /usr/bin/python # photocat.py # # Implement fix_photoreqs, which accepts a chunk of wikitext and # returns modified wikitext that has had its templates updated # with better-categorized image requests. import wikipedia, catlib, pagegenerators import time import re import getopt , sys import wikitemplate # This pattern matches unqualified photo request templates. photoReqPat = re . compile ( r '{{(reqphoto|photoreq|image *request|image *requested|photo|picture|reqphotoin \b *)}}' , re . I ) # This pattern matches location-oriented WikiProjects. wikiLocationPat = re . compile ( r '(WikiProject|Project|WP)?(Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|GeorgiaUS|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Louisville|Maine|Maryland|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Virginia|Washington|West Virginia|Wisconsin|Wyoming|Poland|Australia|India|Israel|Korea|China|Canada|France|Cambodia|Bangladesh|Taiwan|Japan|Venezuela)' ) # location_map, subject_map, and custom_map tell PhotoCatBot how to specify # photo requests for an article, based on what other WikiProject templates # are already present: # - subject_map: specifies e.g. {{reqphoto|ships}} for {{WikiProject Ships}} # - location_map: specifies e.g. {{reqphoto|in=China}} for {{WPCHINA}} # - custom-map: adds e.g. 'needs-photo=yes' to the {{BirdTalk}} template # subject_map = { 'Album' : 'albums' , 'Architecture' : 'architecture' , 'Beer' : 'food' , 'BTGProject' : 'games' , 'Chemicals' : 'chemical compounds' , 'ChristianityWikiProject' : 'religious subjects' , 'Contemporary music' : 'music topics' , 'Environment' : 'environmental topics' , 'Fishproject' : 'fishes' , 'WikiProject aquarium fishes' : 'fishes' , 'LanguageTalk' : 'languages' , 'Law enforcement' : 'law and crime topics' , 'LDSproject' : 'religious subjects' , 'Motorcycling' : 'motorcycles' , 'Pro-wrestling' : 'sportspeople' , 'Soil' : 'earth science subjects' , 'TelevisionWikiProject' : 'television programs' , 'Television' : 'television programs' , 'British TV shows project' : 'television programs' , 'ShipwrecksWikiProject' : 'ships' , 'TrainsWikiProject' : 'transport' , 'Visual arts' : 'art' , 'WikiProject Amateur radio' : 'amateur radio' , 'WikiProject Anime and manga' : 'anime and manga' , 'WikiProject Automobiles' : 'cars' , 'WikiProject Bridges' : 'architecture' , 'WikiProject Bridges article' : 'architecture' , 'WikiProjectBSG' : 'television programs' , 'WikiProject BSG' : 'television programs' , 'WikiProject Buddhism' : 'religious subjects' , 'WikiProject Business & Economics' : 'business & economic topics' , 'WikiProject Circus' : 'performing arts' , 'WikiProject Companies' : 'business & economic topics' , 'WikiProject E-theatre' : 'performing arts' , 'WikiProject Energy' : 'energy subjects' , 'WikiProject Fashion' : 'fashion' , 'WikiProject Filmmaking' : 'filmmaking' , 'WikiProject Figure Skating' : 'performing arts' , 'WikiProject Formula One' : 'cars' , 'WikiProject Food and drink' : 'food' , 'WikiProject Games' : 'games' , 'WikiProject Geology' : 'geology' , 'WikiProject Judaism' : 'religious subjects' , 'WikiProject Lepidoptera' : 'insecta' , 'WikiProject Lost' : 'television programs' , 'WikiProject Nickelodeon' : 'television programs' , 'WikiProject Pinball' : 'games' , 'WikiProject Ships' : 'ships' , 'WikiProject Textile Arts' : 'textiles and fabrics' , 'WikiProject Television' : 'television programs' , 'WikiProject Theatre' : 'performing arts' , 'WikiProject Politics' : 'politicians and government-people' , 'WikiProject Saints' : 'religious subjects' , 'WikiProject Viruses' : 'Viruses' , 'Wine' : 'food' , 'WPAN' : 'anatomy' , 'WP Crime' : 'law and crime topics' , 'WPFarm' : 'agricultural topics' , 'WP Gemology and Jewelry' : 'jewelry' , 'WPGUNS' : 'firearms' , 'WPMED' : 'medical subjects' , 'WPMILHIST' : 'military history' , 'WPMusInst' : 'musical instruments' , 'WPReligion' : 'religious subjects' , 'WPSchools' : 'schools' , 'WP Sexuality' : 'sexuality subjects' , 'WPSpiders' : 'arthropods' , 'International relations' : 'politicians and government-people' , 'International Relations' : 'politicians and government-people' , } location_map = { 'WPTR' : 'Turkey' , 'OttawaProject' : 'Ottawa' , 'Saskatchewanproject' : 'Saskatchewan' , 'BRWikiProject' : 'Kentucky' , 'SG' : 'Singapore' , 'BCproject' : 'British Columbia' , 'WPVN' : 'Vietnam' , 'WPTAIWAN' : 'Taiwan' , 'Project Congress' : 'Washington, D.C.' , } custom_map = { 'AARTalk' : 'needs-photo' , 'ArthropodTalk' : 'needs-photo' , 'BirdTalk' : 'needs-photo' , 'Chemistry' : 'needs-picture' , 'Comicsproj' : 'image' , 'Cvgproj' : 'screenshot' , 'Electronic-music-project' : 'needs-photo' , 'Engineering' : 'imageneeded' , 'Film' : 'needs-image' , 'Mammal' : 'needs-photo' , 'MaTalk' : 'needs-photo' , 'Mountain' : 'needs-photo' , 'Musicals-project' : 'imageneeded' , 'Physics' : 'needs-image' , 'PrimateTalk' : 'needs-photo' , 'RollerCoasterProject' : 'imageneeded' , 'Skyscrapers' : 'imageneeded' , 'StarTrekproject' : 'needs-picture' , 'WikiProject Animals' : 'needs-photo' , 'WikiProject Atlanta' : 'imageneeded' , 'WikiProject Baseball' : 'image' , 'WikiProject Biology' : 'needs-photo' , 'WikiProject Books' : 'needs-infobox-cover' , 'WikiProject Computing' : 'image-needed' , 'WikiProject Connecticut' : 'imageneeded' , 'WikiProject Dance' : 'needs-image' , 'WikiProject Fungi' : 'needs-photo' , 'WikiProject Gastropods' : 'needs-photo' , 'WikiProject Genetics' : 'imageneeded' , 'WikiProject GeorgiaUS' : 'imageneeded' , 'WikiProject Ireland' : 'image-needed' , 'WikiProject Micro' : 'needs-photo' , 'WikiProject Mountains' : 'needs-photo' , 'WikiProject Plants' : 'needs-photo' , 'WikiProject Video games' : 'screenshot' , 'WikiProject Video Games' : 'screenshot' , 'WPAstronomy' : 'needs-image' , 'WPAVIATION' : 'Imageneeded' , 'WPBiography' : 'needs-photo' , 'WPBooks' : 'needs-infobox-cover' , 'WPCHINA' : 'image-needed'
Custom Photo Jewelry, Susan Beard Design representing My Life Designs ...
Susan Beard Design representing My Life Designs Custom Photo Jewelry offers hierloom quality custom photo jewelry in a special waterproofing process using images you provide to ...
Photo Jewelry | Romero Designs | Custom Photo Jewelry, Handmade ...
Photo Jewelry by Romero Designs. Romero Designs is the premier creator and designer of custom photo jewelry. All of our photo jewelry designs are handcrafted in sterling silver and ...
Gold Lockets, Custom Photo Jewelry, Silver Lockets, Locket Charms and ...
14k Gold Lockets and Sterling Silver Lockets made with a photo. Use our Exclusive Photo Insertion Service with Engraving to produce Custom Photo Jewelry, Picture Lockets and other ...
Kimbra Studios | Custom Photo Jewelery
Custom photo gifts, photo jewelry and photo charms, silver jewelry created and offered by Kimbra Studios.
Photo Jewelry Supplies Italian Photo Charm Photo Bracelets
Christmas Photo Gifts; Photo Jewelry Gallery; Pet Photo Jewelry; Custom Made Photo Jewelry ... Photo Jewelry Supplies, Photo Italian Charm kits, sterling silver photo ...
Custom Soldered Photo Jewelry Necklace
Specializing in soldered photo jewelry so you may always hold your loved ones close to your heart Custom Unique Handcrafted One of a Kind Cherished
Photo Jewelry - Custom Photo Jewelry and Picture Jewelry on Sale
Our Custom Photo Jewelry and Photo Charm Jewelry comes in 14K gold and sterling silver and can be personalized with your message.
Photo Jewelry made from your photo
www.portraitjewelry.com Photo Jewelry www.photo-jewelry.com. Beautiful Custom Portrait Photo Jewelry from your photo, picture or drawing! Photo Enamel Pendants, Necklaces ...
Custom Photo Jewelry
Photo jewelry, photo bracelets and photo charms from customphotojewelry.com
Custom Photo Jewelry - Frequentlly Asked Questions
Custom Photo Jewelry FAQs We are here to help, if you have questions or special requests, please call toll free 8 am - 8 pm EST 1-866-611-6202 What size/color photos can I use?