Giter Site home page Giter Site logo

tlgbackend's Introduction

Article List Generator for Wikipedia - Backend

(c) Wikimedia Deutschland

Author: Johannes Kroll

The Article List Generator makes it possible to search categories and compile article lists using different criteria. The query may consist of a one or more categories, the intersection or the difference of categories. The user is able to determine the depth of the search and a set of filters shown on the righthand side allows further refinement of the result. The combination of these filters is also possible.

The ALG backend uses graphserv and the SQL database to search and filter pages. It can be used with the front end or stand-alone.

tlgbackend's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wmde

tlgbackend's Issues

OperationalError: User 's51222' has exceeded the 'max_user_connections' resource

The query https://tools.wmflabs.org/render/tlgbe/tlgwsgi.py?action=query&flaws=ALL&format=json&lang=commons&query=Axamer+Lizum&querydepth=3 fails with

Error: Traceback (most recent call last):
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/tlgbackend.py", line 336, in generateQuery
    self.pagesToTest= self.evalQueryString(queryString, queryDepth)
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/tlgbackend.py", line 271, in evalQueryString
    result|= set(self.evalQueryToken(category, depth))
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/tlgbackend.py", line 199, in evalQueryToken
    res= self.cg.getPagesInCategory(string.replace(' ', '_'), int(defaultdepth)-1, )
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/tlgcatgraph.py", line 22, in getPagesInCategory
    catID= getCategoryID(self.wikiname, category)
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/cache.py", line 572, in cached
    return cache[0].get_value(cache_key, createfunc=go)
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/cache.py", line 305, in get
    return self._get_value(key, **kw).get_value()
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/container.py", line 385, in get_value
    v = self.createfunc()
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/cache.py", line 570, in go
    return func(*args)
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/utils.py", line 190, in getCategoryID
    page= getPageByTitle(wiki, catTitle, NS_CATEGORY)
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/cache.py", line 572, in cached
    return cache[0].get_value(cache_key, createfunc=go)
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/cache.py", line 305, in get
    return self._get_value(key, **kw).get_value()
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/container.py", line 385, in get_value
    v = self.createfunc()
  File "/data/project/render/.local/lib/python2.7/site-packages/Beaker-1.6.4-py2.7.egg/beaker/cache.py", line 570, in go
    return func(*args)
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/utils.py", line 169, in getPageByTitle
    cur= getCursors()[wiki]
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/utils.py", line 303, in __missing__
    newvalue= self.createEntry(key)
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/utils.py", line 148, in createEntry
    conn= getConnections()[ckey]
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/utils.py", line 303, in __missing__
    newvalue= self.createEntry(key)
  File "/mnt/nfs/labstore-secondary-tools-project/render/public_html/tlgbe/utils.py", line 312, in createEntry
    return MySQLdb.connect( read_default_file=GetSQLDefaultFile(), host=key, use_unicode=False, cursorclass=MySQLdb.cursors.DictCursor )
  File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (1226, "User 's51222' has exceeded the 'max_user_connections' resource (current value: 10)")

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.