Tree @upstream/latest (Download .tar.gz)
- ..
- __init__.py
- about.py
- affilorama.py
- archive.py
- arduino.py
- ariva.py
- armorgames.py
- askfm.py
- audiob.py
- audioboom.py
- authorstream.py
- badoo.py
- bandcamp.py
- bennugd.py
- betblog.py
- bitbacker.py
- bitbucket.py
- bitcointalk.py
- bitrated.py
- blip.py
- blogmarks.py
- blogspot.py
- boonex.py
- bubok.py
- bucketlistly.py
- buddypic.py
- burbuja.py
- canva.py
- carbonmade.py
- cartodb.py
- causes.py
- ccm.py
- ccsinfo.py
- chess.py
- cockos.py
- codecademy.py
- codementor.py
- coderwall.py
- colourlovers.py
- connectingsingles.py
- couchsurfing.py
- crokes.py
- crowdin.py
- cryptocompare.py
- cryptofresh.py
- dailymotion.py
- datpiff.py
- deviantart.py
- digitalspy.py
- disqus.py
- doodle.py
- douban.py
- dreamstime.py
- dribbble.py
- drupal.py
- dzone.py
- ebay.py
- echatta.py
- eightbitme.py
- ello.py
- emoneyspace.py
- enfemenino.py
- ethereum.py
- etsy.py
- eyeem.py
- facebook.py
- fanpop.py
- fark.py
- fiverr.py
- flickr.py
- forocoches.py
- foros24h.py
- forosperu.py
- forospyware.py
- foursquare.py
- freelancer.py
- freerepublic.py
- getsatisfaction.py
- github.py
- goblinrefuge.py
- goodreads.py
- gravatar.py
- gsmspain.py
- houzz.py
- htcmania.py
- hubpages.py
- ibosocial.py
- ifunny.py
- infojobs.py
- infotelefonica.py
- instagram.py
- instructables.py
- issuu.py
- ivoox.py
- jamiiforums.py
- kali.py
- kanogames.py
- key_server.py
- keybase.py
- kickstarter.py
- kinja.py
- kongregate.py
- kupika.py
- lastfm.py
- listaspam.py
- livejournal.py
- losviajeros.py
- mastodon_social.py
- mastodon_xyz.py
- mcneel.py
- mediavida.py
- medium.py
- memrise.py
- meneame.py
- mercadolibre.py
- metacafe.py
- meteor.py
- minds.py
- mozilla.py
- mstdn_jp.py
- musicasacra.py
- myeloma.py
- myfitnesspal.py
- myspace.py
- nairaland.py
- netvibes.py
- newgrounds.py
- notabug.py
- occupywallst.py
- ok.py
- okcupid.py
- onename.py
- openbugbounty.py
- openframeworks.py
- openstreetmap.py
- papaly.py
- pastebin.py
- patreon.py
- pawoo.py
- pearltrees.py
- periscope.py
- phishtank.py
- photobucket.py
- pixinsight.py
- pixls.py
- pjrc.py
- pokerred.py
- pokerstrategy.py
- pornhub.py
- px500.py
- rankia.py
- reddit.py
- redtube.py
- researchgate.py
- reverbnation.py
- ripenear.py
- rojadirecta.py
- ruby.py
- sarahah.py
- scribd.py
- seatwish.py
- sencha.py
- sidereel.py
- singletrackworld.py
- slashdot.py
- slideshare.py
- smartcitizen.py
- smugmug.py
- soundcloud.py
- soup.py
- spaniards.py
- spoj.py
- spotify.py
- spreaker.py
- steamcommunity.py
- steemit.py
- steinberg.py
- taringa.py
- teamtreehouse.py
- telegram.py
- thesims.py
- thestudentroom.py
- theverge.py
- thiscrush.py
- tippin_me.py
- trakt.py
- twitter.py
- twoplustwo.py
- typepad.py
- unsplash.py
- v7n.py
- venmo.py
- verbling.py
- vexforum.py
- viddler.py
- videohelp.py
- vimeo.py
- virustotal.py
- vk.py
- warriorforum.py
- wattpad.py
- webtv.py
- wikia.py
- wikipediaar.py
- wikipediaca.py
- wikipediade.py
- wikipediaen.py
- wikipediaes.py
- wikipediaeu.py
- wikipediafr.py
- wikipediapt.py
- wikipediaru.py
- winamp.py
- wishlistr.py
- witty.py
- wykop.py
- xing.py
- xtelefonos.py
- xtube.py
- youtube.py
- zentyal.py
- zotero.py
memrise.py @upstream/latest — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
__author__ = (
"Luis Alberto López Alvar <[email protected]>; "
"Felix Brezo, Yaiza Rubio <[email protected]>"
)
__version__ = "2.0"
from osrframework.utils.platforms import Platform
class Memrise(Platform):
"""A <Platform> object for Memrise"""
def __init__(self):
self.platformName = "Memrise"
self.tags = ["education","social"]
########################
# Defining valid modes #
########################
self.isValidMode = {}
self.isValidMode["phonefy"] = False
self.isValidMode["usufy"] = True
self.isValidMode["searchfy"] = False
######################################
# Search URL for the different modes #
######################################
# Strings with the URL for each and every mode
self.url = {}
#self.url["phonefy"] = "http://anyurl.com//phone/" + "<phonefy>"
self.url["usufy"] = "https://www.memrise.com/user/<usufy>/"
#self.url["searchfy"] = "http://anyurl.com/search/" + "<searchfy>"
######################################
# Whether the user needs credentials #
######################################
self.needsCredentials = {}
#self.needsCredentials["phonefy"] = False
self.needsCredentials["usufy"] = False
#self.needsCredentials["searchfy"] = False
#################
# Valid queries #
#################
# Strings that will imply that the query number is not appearing
self.validQuery = {}
# The regular expression '.+' will match any query
#self.validQuery["phonefy"] = ".*"
self.validQuery["usufy"] = ".+"
#self.validQuery["searchfy"] = ".*"
###################
# Not_found clues #
###################
# Strings that will imply that the query number is not appearing
self.notFoundText = {}
#self.notFoundText["phonefy"] = []
self.notFoundText["usufy"] = [
"<img src=\"https://static.memrise.com/general/img/error/404_bg.svg\""
]
#self.notFoundText["searchfy"] = []
#########################
# Fields to be searched #
#########################
self.fieldsRegExp = {}
# Definition of regular expressions to be searched in phonefy mode
#self.fieldsRegExp["phonefy"] = {}
# Example of fields:
#self.fieldsRegExp["phonefy"]["i3visio.location"] = ""
# Definition of regular expressions to be searched in usufy mode
self.fieldsRegExp["usufy"] = {}
# Example of fields:
#self.fieldsRegExp["usufy"]["i3visio.location"] = ""
# Definition of regular expressions to be searched in searchfy mode
#self.fieldsRegExp["searchfy"] = {}
# Example of fields:
#self.fieldsRegExp["searchfy"]["i3visio.location"] = ""
################
# Fields found #
################
# This attribute will be feeded when running the program.
self.foundFields = {}
|