Git Product home page Git Product logo

capitulizer's Introduction

Hi there 👋

  • 🔭 I’m currently working on a bunch of random things connected with python and running in the cloud.
  • 🌱 I’m currently expanding my product management skills.
  • 👯 I’m looking to collaborate on terraforming the world one company at a time.
  • 📫 How to reach me:
    • keybase.io/wakaru44

capitulizer's People

Contributors

juanantoniofm avatar wakaru44 avatar

Stargazers

 avatar

Watchers

 avatar

capitulizer's Issues

Create a control panel

we need a front-end to select some episodes and perform complex actions, like

  • recheck the episode info,
  • launch newPosts,
  • refresh picture

Maybe a good aproach is to create a form with checkboxes to select the desired episode, a select for the action, and a submit button. If we have a textbox to perform selects, great.
The page should be protected with authentication.

Error parseando mensaje recibido. - Mensaje vacio

Sending a mail to the app, if the html message is broken, extractSY.linksToEpisodes gives an exception.

'NoneType' object has no attribute 'replace'
Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1536, in call
rv = self.handle_exception(request, response, e)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1530, in call
rv = self.router.dispatch(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1278, in default_dispatcher
return route.handler_adapter(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1102, in call
return handler.dispatch()
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 572, in dispatch
return self.handle_exception(e, self.app.debug)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 570, in dispatch
return method(_args, *_kwargs)
File "/base/python27_runtime/python27_lib/versions/1/google/appengine/ext/webapp/mail_handlers.py", line 65, in post
self.receive(mail.InboundEmailMessage(self.request.body))
File "/base/data/home/apps/scapitulizer/1.363265656426203682/email_aggregateEpisodes.py", line 32, in receive
self.getBody(mail_message)) # Links list
File "/base/data/home/apps/s
capitulizer/1.363265656426203682/extractSY.py", line 115, in linksToEpisodes
syMsg = msg.replace("=\n", "")

Mejorar el titulo del post

El titulo del post es mas util, y facil de ordenar en el blog, si esta construido de otra manera:

Serie - temporada - numero capitulo - titulo

Por poner un ejemplo

FIXED - Triggering a newPost event trhows exception

Triggering a newPost event,
Key: ag1zfmNhcGl0dWxpemVycg0LEgdlcGlzb2RlGAUM

Internal Server Error

The server has either erred or is incapable of performing the requested operation.

Traceback (most recent call last):
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1536, in call
rv = self.handle_exception(request, response, e)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1530, in call
rv = self.router.dispatch(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1278, in default_dispatcher
return route.handler_adapter(request, response)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1102, in call
return handler.dispatch()
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 572, in dispatch
return self.handle_exception(e, self.app.debug)
File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 570, in dispatch
return method(_args, *_kwargs)
File "/base/data/home/apps/s~capitulizer/1.363432210333487870/task_newPost.py", line 78, in post
raise Exception
Exception

Exception after adding the video causes task to repeat and create duplicates

After adding the video to the datastore, the app throws an exception.
This causes the task to repeat again, and add another video.
Because we have no duplicate for the videos, they add again and again.

2012-11-24 21:58:17.857
'int' object is not callable
Traceback (most recent call last):
  File "/base/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 1547, in __call__
    return response(environ, start_response)
TypeError: 'int' object is not callable

task_newPost and task_watchNotify should send hidden copy

To hide the admin's email, the copy to them should be bcc.
NOTE: we dont send any submitter information. We use this notification for debugging the app. But we want to protect ourselves a little bit. A contact address will be provided in the projects webpage or in the documentation.

version 4 cams

Para la completar la prueba hay que:

  • Primero probar que tal se ve un iframe en una de blogger
  • Luego hacer que esa pagina sea la frontal del blog, en lugar de los posts,
  • si asi no funciona, probar a insertar el iframe en un post, y que ese post sea el principal

There be errors : DNS

while trying to fetch a website with urllib:

2012-11-25 20:06:34.830
user agent
D 2012-11-25 20:06:34.830
Amiga-AWeb/3.4.167SE
E 2012-11-25 20:06:34.864
Could't get the link. Url ERROR
E 2012-11-25 20:06:34.865
<urlopen error An error occured while connecting to the server: DNS lookup failed for URL: http://www.seriescoco.comhttp://capitulo/the-big-bang-theory/capitulo-8/224754>
E 2012-11-25 20:06:34.865
{'User-Agent': 'Amiga-AWeb/3.4.167SE '}
E 2012-11-25 20:06:34.865
u'http://www.seriescoco.comhttp://capitulo/the-big-bang-theory/capitulo-8/224754'
E 2012-11-25 20:06:34.865
Type Error madafaca. Dunno if this mean something, but i will just die
E 2012-11-25 20:06:34.865
init() takes exactly 2 arguments (1 given)

Refactor some things to a "tools" or "general methods" module

For God's sake!!
It is madness to write the same things to build an email instead of just passing parameters and get it built and sent

It should be a re-usable function, accesible for every Handler, that gets email parts, and creates a task to send one.
Try to make it easy to test

Refactor tasks/newPost

tasks/newPost needs to be refatored to a more elegant approach.
Eliminate the plain functions,
create a Post object,
use jinja templates,
be able to create different kinds of post,
and add a parameter to actually send the email or just logit

Send an admin email in case of not finding videos for the episode

Should send a notification email to the admin in case of not finding links to videos to play in an episode web.
Send the link to the web, and the list of links found nicely ordered

2012-11-24 21:57:30.834
--- Extracting the interLinks---
E 2012-11-24 21:57:30.914
No interlinks Found on the website given

Correo excesivo

Hay que reducir el volumen de email qeu la aplicacion envia.
Actualmente llega a bloquearse por superar la cuota de correo maximo diario que puee enviar.
El problema viene principal mente pq la tarea watchnotify manda varios, y luego ademas, la propia herramienta envia duplicados de seguridad al email.
Esto ya no parece necesario y podemos evitar incurrir en overquota

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.