Code Monkey home page Code Monkey logo

getgettyflaskapp's Introduction

GetGettyFlaskApp

A small application for downloading images in high quality without watermark from some popular photo hosting.

Be aware: images may be copyrighted. In this case, you cannot use them without permission from the owner.

How to run:

Install dependencies using pip:

  • flask
  • flask-wtf
  • flask-sqlalchemy
  • flask-login
  • flask-bootstrap
  • flask-migrate
  • requests
  • Pillow

In the command line:

In the browser:

  • Open http://127.0.0.1:5000/
  • Sign up and login
  • Get your token to insert into the "GetGetty" Chrome extension settings

Notes:

  • Basic Views related to registration and authorization are in the: GetGettyFlaskApp/app/routes.py
  • The View for verifying api key and downloading images is in the GetGettyFlaskApp/app/api.py
  • Logic of image processing in the: GetGettyFlaskApp/GetGettyDownloader.py

Use for educational purposes only.

getgettyflaskapp's People

Contributors

dreyk007 avatar

Stargazers

 avatar

Watchers

 avatar

getgettyflaskapp's Issues

please help getting this error

C:\Users\sgaur\GetGettyFlaskApp>flask db upgrade
[2020-10-26 20:41:23,228] INFO in init: GetGetty started
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts\flask.exe_main
.py", line 7, in
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask\cli.py", line 967, in main
cli.main(args=sys.argv[1:], prog_name="python -m flask" if as_module else None)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask\cli.py", line 586, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask\cli.py", line 426, in decorator
return _ctx.invoke(f, *args, **kwargs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask_migrate\cli.py", line 134, in upgrade
upgrade(directory, revision, sql, tag, x_arg)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask_migrate_init
.py", line 96, in wrapped
f(*args, **kwargs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\flask_migrate_init
.py", line 271, in upgrade
command.upgrade(config, revision, sql=sql, tag=tag)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\command.py", line 298, in upgrade
script.run_env()
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\base.py", line 489, in run_env
util.load_python_file(self.dir, "env.py")
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\util\pyfiles.py", line 98, in load_python_file
module = load_module_py(module_id, path)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\util\compat.py", line 184, in load_module_py
spec.loader.exec_module(module)
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "migrations\env.py", line 96, in
run_migrations_online()
File "migrations\env.py", line 90, in run_migrations_online
context.run_migrations()
File "", line 8, in run_migrations
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\runtime\environment.py", line 846, in run_migrations
self.get_context().run_migrations(**kw)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\runtime\migration.py", line 511, in run_migrations
for step in self._migrations_fn(heads, self):
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\command.py", line 287, in upgrade
return script._upgrade_revs(revision, rev)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\base.py", line 364, in _upgrade_revs
revs = list(revs)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\revision.py", line 777, in _iterate_revisions
uppers = util.dedupe_tuple(self.get_revisions(upper))
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\revision.py", line 321, in get_revisions
resolved_id, branch_label = self.resolve_revision_number(id)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\revision.py", line 501, in _resolve_revision_number
self._revision_map
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\util\langhelpers.py", line 230, in get
obj.dict[self.name] = result = self.fget(obj)
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\revision.py", line 123, in _revision_map
for revision in self._generator():
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\base.py", line 103, in load_revisions
for file
in Script._list_py_dir(self, vers):
File "C:\Users\sgaur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\alembic\script\base.py", line 876, in _list_py_dir
return os.listdir(path)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\sgaur\GetGettyFlaskApp\migrations\versions'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.