<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi, Gonzalo<br>
    <br>
    It may require a separate interface for direct html urls. <br>
    <br>
    Tony<br>
    <br>
    <div class="moz-cite-prefix">On 07/19/2016 03:16 PM, Gonzalo Odiard
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ+iPVSuz=ZS_R2gyGM_-6H++DucDNChMnqxum0PcQwLiUxfGQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Yes. GetBooks feedparser understand OPDS.
        <div>Will not understand html.</div>
        <div><br>
        </div>
        <div>Gonzalo</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jul 19, 2016 at 10:08 AM, Tony
          Anderson <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi, Gonzalo<br>
              <br>
              From the code, GetBooks uses feedparser. Pathagar is a
              server while GetBooks is a client. In this case, Utkarsh
              is delivering the content by html. I think more testing is
              needed to see where the problem might be.<br>
              <br>
              Thanks for your help, <br>
              <br>
              Tony
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 07/19/2016 01:13 PM, Gonzalo Odiard wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">GetBooks get the list and the books
                      using the OPDS protocol. 
                      <div>Pathagar [1] is a book server who serves that
                        protocol, and is (or was) included in the school
                        server.</div>
                      <div>Pathagar has tools to import a directory of
                        books in his own database,</div>
                      <div>looks like you need work in the schoolserver
                        to include Rachel and gutemberg books</div>
                      <div>in Pathagar.</div>
                      <div>Then you only need add a new server in
                        get-books.cfg</div>
                      <div><br>
                      </div>
                      <div>Gonzalo</div>
                      <div><br>
                      </div>
                      <div>[1] <a moz-do-not-send="true"
                          href="https://github.com/PathagarBooks/pathagar"
                          target="_blank">https://github.com/PathagarBooks/pathagar</a><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Tue, Jul 19, 2016 at
                        6:50 AM, Ütkarsh Tiwari <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:iamutkarshtiwari@gmail.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:iamutkarshtiwari@gmail.com">iamutkarshtiwari@gmail.com</a></a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div dir="ltr">
                            <div>
                              <div>
                                <div>Hi,<br>
                                </div>
                                   I created a folder in my home
                                directory by the name <b>'server'</b> ,
                                put all the extracted book collections
                                inside it and start a localhost server
                                with <b>'python -m SimpleHTTPServer'</b>
                                . <br>
                                I then added that bookcollection url (
                                in my case it was - <b><a
                                    moz-do-not-send="true"
                                    href="http://127.0.0.1:8000/server/en-ck12/index.htmlf"
                                    target="_blank"><a class="moz-txt-link-freetext" href="http://127.0.0.1:8000/server/en-ck12/index.htmlf">http://127.0.0.1:8000/server/en-ck12/index.htmlf</a></a></b>)
                                to one of the already available book
                                genres in <b>get-books.cfg</b> . <br>
                                <br>
                                On clicking that genre I get this error
                                message - '<b>There was an error
                                  downloading the list</b>.'<br>
                                <br>
                              </div>
                              Regards,<br>
                            </div>
                            Utkarsh Tiwari<br>
                          </div>
                          <div class="gmail_extra">
                            <div>
                              <div><br>
                                <div class="gmail_quote">On Tue, Jul 19,
                                  2016 at 2:50 PM, Tony Anderson <span
                                    dir="ltr"><<a
                                      moz-do-not-send="true"
                                      href="mailto:tony_anderson@usa.net"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:tony_anderson@usa.net">tony_anderson@usa.net</a></a>></span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div text="#000000"
                                      bgcolor="#FFFFFF"> Hi, Utkarsh<br>
                                      <br>
                                      I am not sure what question you
                                      are asking.<br>
                                      <br>
                                      Looking at the code: the
                                      repositories seem to be defined in
                                      get-books.cfg.<br>
                                      <br>
                                      The actual mechanics of accessing
                                      the network appears to be handled
                                      by 'feedparse', which is a python
                                      module described at <br>
                                      <a moz-do-not-send="true"
                                        href="https://pythonhosted.org/feedparser/introduction.html"
                                        target="_blank">https://pythonhosted.org/feedparser/introduction.html</a>.<br>
                                      <br>
                                      What are you trying to do and what
                                      is your problem with it? Did you
                                      add a repository to get-books.cfg?
                                      DId it show up as you expected in
                                      the <br>
                                      toolbar widget? What happens if
                                      you select it? Does it show the
                                      catalogs you entered? What happens
                                      if you select a catalog? Does it
                                      show a list of books?<br>
                                      What happens when you click on a
                                      book - does it get downloaded to
                                      the Journal?<br>
                                      <br>
                                      My suggestion is to add Rachel as
                                      an online repository getting the
                                      books from its site as a first
                                      step. Once that is working,
                                      changing the urls to local should
                                      be easier to test since you would
                                      already know what to expect. <a
                                        moz-do-not-send="true"
href="http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html"
                                        target="_blank"><a class="moz-txt-link-freetext" href="http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html">http://rachelfriends.org/previews/rachelplus/modules/en-ebooks/index.html</a></a>
                                      is the site for Gutenberg. Each of
                                      the links on that page could be a
                                      catalog. Then clicking on one to
                                      show the list of books in the
                                      right panel. <br>
                                      <br>
                                      Tony
                                      <div>
                                        <div><br>
                                          <br>
                                          <div>On 07/19/2016 08:23 AM,
                                            Ütkarsh Tiwari wrote:<br>
                                          </div>
                                        </div>
                                      </div>
                                      <blockquote type="cite">
                                        <div>
                                          <div>
                                            <div dir="ltr">Hi,
                                              <div>    I am working on
                                                this feature of adding
                                                offline support to
                                                GetBooks activity to
                                                allow users to connect
                                                to schoolservers for
                                                offline books(stored on
                                                these servers) support.
                                                I am not able to figure
                                                out what modifications I
                                                need to make in the
                                                parsing technique of the
                                                activity in order to
                                                fetch(probably via
                                                localhost server) the
                                                books from Gutenberg,
                                                Rachel collections which
                                                I have already
                                                downloaded onto my
                                                harddisk.</div>
                                              <div><br>
                                              </div>
                                              <div>Could anyone here
                                                please point me in the
                                                right direction?<br
                                                  clear="all">
                                                <div><br>
                                                </div>
                                                -- <br>
                                                <div
                                                  data-smartmail="gmail_signature">Regards,<br>
                                                  Ütkarsh Tiwari<br>
                                                  <br>
                                                  <br>
                                                  <br>
                                                </div>
                                              </div>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                          </div>
                                        </div>
                                        <pre>_______________________________________________
Sugar-devel mailing list
<a moz-do-not-send="true" href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>
<a moz-do-not-send="true" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
                                      </blockquote>
                                      <br>
                                    </div>
                                    <br>
_______________________________________________<br>
                                    Sugar-devel mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:Sugar-devel@lists.sugarlabs.org"
                                      target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
                                    <a moz-do-not-send="true"
                                      href="http://lists.sugarlabs.org/listinfo/sugar-devel"
                                      rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
                                    <br>
                                  </blockquote>
                                </div>
                                <br>
                                <br clear="all">
                                <br>
                              </div>
                            </div>
                            <span><font color="#888888">-- <br>
                                <div data-smartmail="gmail_signature">Regards,<br>
                                  Ütkarsh Tiwari<br>
                                  <br>
                                  <br>
                                  <br>
                                </div>
                              </font></span></div>
                          <br>
_______________________________________________<br>
                          Sugar-devel mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Sugar-devel@lists.sugarlabs.org"
                            target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
                          <a moz-do-not-send="true"
                            href="http://lists.sugarlabs.org/listinfo/sugar-devel"
                            rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                      <br clear="all">
                      <div><br>
                      </div>
                      -- <br>
                      <div data-smartmail="gmail_signature">
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <table width="470" border="0"
                                  cellpadding="0" cellspacing="0">
                                  <tbody>
                                    <tr valign="top">
                                      <td
                                        style="padding-left:10px;width:10px;padding-right:10px"><img
                                          moz-do-not-send="true"
src="https://s3.amazonaws.com/ucwebapp.wisestamp.com/a2cdffca-bc96-4966-b4fa-c3fa79edb131/12112365_414949315381645_4106803690337175030_n.format_png.resize_120x.png"
                                          alt="photo"
                                          style="border-radius:4px;width:65px;max-width:120px"
                                          height=" " width="65"></td>
                                      <td
style="border-right-width:0px;border-right-style:solid;border-right-color:rgb(69,102,142)"><br>
                                      </td>
                                      <td
                                        style="font-family:Arial;text-align:initial;font-stretch:normal;font-size:14px;padding:0px
                                        10px">
                                        <div
                                          style="color:rgb(100,100,100)"><b>Gonzalo

                                            Odiard</b><br>
                                          Lider de proyecto</div>
                                        <div
                                          style="font-size:13px;padding:5px
                                          0px"><a moz-do-not-send="true"
                                            href="tel:tel.:+4210-7748"
                                            style="color:rgb(141,141,141);text-decoration:none"
                                            target="_blank">tel.: </a><span
style="font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><font
                                              color="#666666">2081-6424
                                              y 2082-0312</font></span><font
                                            color="#8d8d8d"> | </font><span
style="color:rgb(141,141,141);text-align:initial;white-space:nowrap;display:inline-block"><a
                                              moz-do-not-send="true"
                                              href="http://www.trinom.io"
                                              target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.trinom.io">www.trinom.io</a></a></span><span
style="color:rgb(141,141,141);text-align:initial"> </span><span
                                            style="color:rgb(141,141,141);text-align:initial"> </span><span
style="color:rgb(141,141,141);text-align:initial"> </span><span
                                            style="color:rgb(69,102,142);text-align:initial;display:inline-block"></span><span
style="color:rgb(141,141,141);text-align:initial"> </span><span
                                            style="color:rgb(141,141,141);text-align:initial;display:inline-block">Av

                                            Calchaqui 4936· 2do Piso.
                                            Quilmes</span></div>
                                        <div
                                          style="color:rgb(100,100,100);margin-top:5px"><a
                                            moz-do-not-send="true"
                                            href="http://www.facebook.com/trinomiosrl"
                                            target="_blank"><img
                                              moz-do-not-send="true"
src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/facebook.png"
style="border-radius:0px;border:0px;width:16px" width="16"></a> <a
                                            moz-do-not-send="true"
                                            href="https://www.linkedin.com/company/trinom-io"
                                            target="_blank"><img
                                              moz-do-not-send="true"
src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/linkedin.png"
                                              alt=""
                                              style="border-radius:0px;border:0px;width:16px"
                                              width="16"></a></div>
                                        <div
                                          style="color:rgb(100,100,100)"><br>
                                        </div>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Sugar-devel mailing list
<a moz-do-not-send="true" href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a>
<a moz-do-not-send="true" href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Sugar-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sugarlabs.org/listinfo/sugar-devel"
              rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <table
                    style="color:rgb(136,136,136);font-size:12.8px;font-family:'Times
                    New Roman';width:470px" width="470" border="0"
                    cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr valign="top">
                        <td
                          style="padding-left:10px;width:10px;padding-right:10px"><img
                            moz-do-not-send="true"
src="https://s3.amazonaws.com/ucwebapp.wisestamp.com/a2cdffca-bc96-4966-b4fa-c3fa79edb131/12112365_414949315381645_4106803690337175030_n.format_png.resize_120x.png"
                            alt="photo"
                            style="border-radius:4px;width:65px;max-width:120px"
                            height=" " width="65"></td>
                        <td
style="border-right-width:0px;border-right-style:solid;border-right-color:rgb(69,102,142)"><br>
                        </td>
                        <td
                          style="font-family:Arial;text-align:initial;font-stretch:normal;font-size:14px;padding:0px
                          10px">
                          <div style="color:rgb(100,100,100)"><b>Gonzalo
                              Odiard</b><br>
                            Lider de proyecto</div>
                          <div style="font-size:13px;padding:5px 0px"><a
                              moz-do-not-send="true"
                              href="tel:tel.:+4210-7748"
                              style="color:rgb(141,141,141);text-decoration:none"
                              target="_blank">tel.: </a><span
style="font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><font
                                color="#666666">2081-6424 y 2082-0312</font></span><font
                              color="#8d8d8d"> | </font><span
style="color:rgb(141,141,141);text-align:initial;white-space:nowrap;display:inline-block"><a
                                moz-do-not-send="true"
                                href="http://www.trinom.io/"
                                style="color:rgb(141,141,141);text-decoration:none"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.trinom.io">www.trinom.io</a></a></span><span
style="color:rgb(141,141,141);text-align:initial"> </span><span
                              style="color:rgb(141,141,141);text-align:initial"> </span><span
style="color:rgb(141,141,141);text-align:initial"> </span><span
                              style="color:rgb(69,102,142);text-align:initial;display:inline-block"></span><span
style="color:rgb(141,141,141);text-align:initial"> </span><span
                              style="color:rgb(141,141,141);text-align:initial;display:inline-block">Av
                              Calchaqui 4936· 2do Piso. Quilmes</span></div>
                          <div
                            style="color:rgb(100,100,100);margin-top:5px"><a
                              moz-do-not-send="true"
                              href="http://www.facebook.com/trinomiosrl"
                              target="_blank"><img
                                moz-do-not-send="true"
src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/facebook.png"
style="border-radius:0px;border:0px;width:16px" width="16"></a> <a
                              moz-do-not-send="true"
                              href="https://www.linkedin.com/company/trinom-io"
                              target="_blank"><img
                                moz-do-not-send="true"
src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/linkedin.png"
                                alt=""
                                style="border-radius:0px;border:0px;width:16px"
                                width="16"></a></div>
                          <div style="color:rgb(100,100,100)"><br>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Sugar-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>