<div dir="ltr">Hi,<br><div><br>You can use their API:<br><a href="http://developer.github.com/v3/repos/contents/#get-contents">http://developer.github.com/v3/repos/contents/#get-contents</a><br><br></div><div>For the example given in this thread:<br>
<br><div style="margin-left:40px"><span style="font-family:courier new,monospace">$ curl <a href="https://api.github.com/repos/gaal/app-csv/contents/bin">https://api.github.com/repos/gaal/app-csv/contents/bin</a><br>[<br>
  {<br>    &quot;sha&quot;: &quot;55669c67601dc74bf4d751d16f79cd3029fe8508&quot;,<br>    &quot;size&quot;: 5131,<br>    &quot;name&quot;: &quot;csv&quot;,<br>    &quot;path&quot;: &quot;bin/csv&quot;,<br>    &quot;type&quot;: &quot;file&quot;,<br>
    &quot;url&quot;: &quot;<a href="https://api.github.com/repos/gaal/app-csv/contents/bin/csv">https://api.github.com/repos/gaal/app-csv/contents/bin/csv</a>&quot;,<br>    &quot;git_url&quot;: &quot;<a href="https://api.github.com/repos/gaal/app-csv/git/blobs/55669c67601dc74bf4d751d16f79cd3029fe8508">https://api.github.com/repos/gaal/app-csv/git/blobs/55669c67601dc74bf4d751d16f79cd3029fe8508</a>&quot;,<br>
    &quot;html_url&quot;: &quot;<a href="https://github.com/gaal/app-csv/blob/master/bin/csv">https://github.com/gaal/app-csv/blob/master/bin/csv</a>&quot;,<br>    &quot;_links&quot;: {<br>      &quot;self&quot;: &quot;<a href="https://api.github.com/repos/gaal/app-csv/contents/bin/csv">https://api.github.com/repos/gaal/app-csv/contents/bin/csv</a>&quot;,<br>
      &quot;git&quot;: &quot;<a href="https://api.github.com/repos/gaal/app-csv/git/blobs/55669c67601dc74bf4d751d16f79cd3029fe8508">https://api.github.com/repos/gaal/app-csv/git/blobs/55669c67601dc74bf4d751d16f79cd3029fe8508</a>&quot;,<br>
      &quot;html&quot;: &quot;<a href="https://github.com/gaal/app-csv/blob/master/bin/csv">https://github.com/gaal/app-csv/blob/master/bin/csv</a>&quot;<br>    }<br>  }<br>]<br></span></div><br><br></div><div>Cheers</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 21, 2013 at 5:46 PM, Shmuel Fomberg <span dir="ltr">&lt;<a href="mailto:shmuelfomberg@gmail.com" target="_blank">shmuelfomberg@gmail.com</a>&gt;</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><div>Hi Gaal.<br><br></div>This give me access to files that I already know exists.<br></div>
What about reading directories? <br></div>If I remove the &#39;csv&#39; from the URL, I get 404...<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></div><span class="HOEnZb"><font color="#888888">Shmuel.<br></font></span><div><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Thu, Feb 21, 2013 at 8:06 PM, Gaal Yahas <span dir="ltr">&lt;<a href="mailto:gaal@forum2.org" target="_blank">gaal@forum2.org</a>&gt;</span> wrote:<br>

</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Pretty trivial filename substitution to make a URL for the raw version, no?<div>
<br></div><div>E.g., <a href="http://github.com/gaal/app-csv/bin/csv" target="_blank">github.com/gaal/app-csv/bin/csv</a> =&gt; <a href="https://raw.github.com/gaal/app-csv/master/bin/csv" target="_blank">https://raw.github.com/gaal/app-csv/master/bin/csv</a></div>


<div><br></div><div>Just use HTTP.</div><div><br><div class="gmail_quote"><div><div>On Thu, Feb 21, 2013 at 7:24 AM, Shmuel Fomberg <span dir="ltr">&lt;<a href="mailto:shmuelfomberg@gmail.com" target="_blank">shmuelfomberg@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi all.<div><br></div><div>Is there a module that let me read files from github respo?</div>

<div>I see a bunch of API wrappers, such as Net::Github and Pithub, but not high-level module. </div>
<span><font color="#888888"><div>
<br></div><div>Shmuel.</div></font></span></div>
<br></div></div>_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il" target="_blank">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br>Gaal Yahas &lt;<a href="mailto:gaal@forum2.org" target="_blank">gaal@forum2.org</a>&gt;<br>
<a href="http://gaal.livejournal.com/" target="_blank">http://gaal.livejournal.com/</a>
</font></span></div></div>
<br>_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il" target="_blank">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a><br></blockquote></div></div></div><br></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
Perl mailing list<br>
<a href="mailto:Perl@perl.org.il">Perl@perl.org.il</a><br>
<a href="http://mail.perl.org.il/mailman/listinfo/perl" target="_blank">http://mail.perl.org.il/mailman/listinfo/perl</a><br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Meir Kriheli<br><a href="http://meirkriheli.com" target="_blank">http://meirkriheli.com</a><br>
</div>
</div>