Search This Site

Custom Search

Sunday, June 27, 2010

[bloggerDev] Coding issue : Different opening layout

Hi,

In my blog I want the opening page to have different layout than other
parts of my blog.

I've managed to do the following :

<b:section class='main' id='main' showaddelement='yes'>
<b:widget id='Text1' locked='true' title='LayoutChooser' type='Text'>
<b:includable id='main'>

<b:if cond='data:blog.url == data:blog.homepageUrl'> <!-- if URL is
to homepage -->

Opening page layout - only one image. Don't want to display
any posts or pages.

<b:else/> <!-- else URL is NOT to homepage -->

inner Pages layout ... Here I want to add the Blog Gadget, and
display posts or pages accordingly.

</b:if></b:includable>

</b:widget>
</b:section>


B-U-T the problem is that when I insert the <b:widget id='Blog1'
locked='true' title='Blog Entries' type='Blog'> (and everything
underneath it) inside the else part (which is inside a widget
already), I get this annoying error The widget with id Blog1 is not
within a section (actual parent element is: b:if.) Every widget should
be in a section.


What can I do to solve this? Very frustrating!

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Thursday, June 24, 2010

[bloggerDev] a security problem ??

I posted a few new blogs today but as I was reading it over I
noticed some typos I didn't make. I also noticed that the page would
scroll down to the bottom of the page without me doing it.Every line
or so I noticed attached to a word &nbsp; over and over I found this.
I started the blog post at the Local Library on their free computers.
I came home to use the family Pc and it was then I noticed a pattern
of it.
What does this mean. ??

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, June 22, 2010

[bloggerDev] .NET SDK updated to 1.6

The Google Data API SDK was just updated to version 1.6. For those only interested in YouTube, the YouTube SDK for .NET was updated accordingly.

The changes are described in the release notes:

http://google-gdata.googlecode.com/svn/trunk/clients/cs/RELEASE_NOTES.HTML

Regards

Frank Mantek
Google

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Uploading posts through api add a lot of
tags, how to avoid that?

Hi! I'm using the python API http://code.google.com/apis/blogger/docs/1.0/developers_guide_python.html
to upload posts to blogger and it works very well.

The problem is that if in the content filed I put my html (formatted)
it inserts a lot of <br/>, for example:

def CreatePublicPost(blogger_service, blog_id, title, content):
entry = gdata.GDataEntry()
entry.title = atom.Title('xhtml', title)
entry.content = atom.Content(content_type='html', text=content)
return blogger_service.Post(entry, '/feeds/%s/posts/default' %
blog_id)

content = """<p>hello</p>
<p>bye</p>"""

CreatePublicPost(...,content)

would publish an entry with something like that:

<p>hello</p><br/>
<p>bye</p>

There's a way to avoid that? Why this behaviour?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Saturday, June 19, 2010

[bloggerDev] Re: Posting in Blogger via Google Buzz

Yes man!

I think that the blogger users should have something
very similar to wordpress buzz comments plugin since
both service (buzz and blogger) are Google's services.

On May 28, 9:45 pm, "SAM.D" <soumyabrat...@gmail.com> wrote:
> Hi Team...
>
> I just want to know , if it possible to post in blogger via GoogleBuzz. That means when I post something inBuzz(private or Public) , i
> can also see it in my Blogger page.
>
> i have tried the blogger email id to post viabuzz,but it didnt work.
>
> Its nice to have something like "Post to Blogger" link inbuzzand
> should be a straight way process....
>
> Waiting for your answer....
>
> thanks
> Sam

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Friday, June 18, 2010

Re: [bloggerDev] Adding PHP script to my blogger



2010/6/19 Ringox Website <ringox@gmail.com>
forget it, impossible... if blogspot let using iframe maybe...


On Fri, Jun 18, 2010 at 6:56 PM, flymy <matankau@gmail.com> wrote:
I created a script in ajax that displays a unique image gallery. The
gallery is feeded by my picasa.

Everything works great on my computer.

But now how can I make it work on my blog in Blogger?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.



--
             
              보고십은치구들

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Adding PHP script to my blogger

Hi...

On 6/19/10, Ringox Website <ringox@gmail.com> wrote:
> forget it, impossible... if blogspot let using iframe maybe...
>
> On Fri, Jun 18, 2010 at 6:56 PM, flymy <matankau@gmail.com> wrote:
>
>> I created a script in ajax that displays a unique image gallery. The
>> gallery is feeded by my picasa.
>>
>> Everything works great on my computer.
>>
>> But now how can I make it work on my blog in Blogger?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Blogger Developer Group" group.
>> To post to this group, send email to bloggerdev@googlegroups.com.
>> To unsubscribe from this group, send email to
>> bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/bloggerdev?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Blogger Developer Group" group.
> To post to this group, send email to bloggerdev@googlegroups.com.
> To unsubscribe from this group, send email to
> bloggerdev+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/bloggerdev?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Adding PHP script to my blogger

forget it, impossible... if blogspot let using iframe maybe...

On Fri, Jun 18, 2010 at 6:56 PM, flymy <matankau@gmail.com> wrote:
I created a script in ajax that displays a unique image gallery. The
gallery is feeded by my picasa.

Everything works great on my computer.

But now how can I make it work on my blog in Blogger?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Adding PHP script to my blogger

I created a script in ajax that displays a unique image gallery. The
gallery is feeded by my picasa.

Everything works great on my computer.

But now how can I make it work on my blog in Blogger?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Opening page for my blogger with different template

How can I make my opening page of the blog with a different template/
layout of my other prts of the blog?

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, June 15, 2010

Re: [bloggerDev] BlogSpot Gadget Prefs Options

Hi Brad,

Can you give us your gadget spec so that we can look into your issue?

Thanks,
Jinwoo

On Sun, Jun 13, 2010 at 12:31 AM, Pletzky <plettb@elegantlogic.com> wrote:
I have created a gadget that requires some preferences to be set by
the blog's author.  When the gadget is hosted on two different blogs
with two different settings, the gadget uses the same settings for
both blogs.  For example, I host the gadget on my blog, and I have a
friend who is hosting the gadget on her blog.  When I view HER blog,
the gadget shows with MY settings.  Obviously, I want to see the
gadget with her settings on her blog, and my settings on my blog.
From everything I can tell, this is a bug in the way Blogger stores
and handles settings.

I'll gladly demonstrate and/or work with the developer on resolving
this!  Note that I initially thought it was something I was doing
wrong, but have since become convinced it's a bug.

By the way, I've posted this in several other places as well, and I
keep getting bounced around or ignored.

http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/61646d00f4dc9fec?pli=1

http://groups.google.com/group/opensocial-api/browse_thread/thread/d40bf1911fc03556

http://code.google.com/p/gdata-issues/issues/detail?id=1946

Brad.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Sunday, June 13, 2010

[bloggerDev] BlogSpot Gadget Prefs Options

I have created a gadget that requires some preferences to be set by
the blog's author. When the gadget is hosted on two different blogs
with two different settings, the gadget uses the same settings for
both blogs. For example, I host the gadget on my blog, and I have a
friend who is hosting the gadget on her blog. When I view HER blog,
the gadget shows with MY settings. Obviously, I want to see the
gadget with her settings on her blog, and my settings on my blog.
From everything I can tell, this is a bug in the way Blogger stores
and handles settings.

I'll gladly demonstrate and/or work with the developer on resolving
this! Note that I initially thought it was something I was doing
wrong, but have since become convinced it's a bug.

By the way, I've posted this in several other places as well, and I
keep getting bounced around or ignored.

http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/61646d00f4dc9fec?pli=1

http://groups.google.com/group/opensocial-api/browse_thread/thread/d40bf1911fc03556

http://code.google.com/p/gdata-issues/issues/detail?id=1946

Brad.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Wednesday, June 9, 2010

Re: [bloggerDev] Re: Editing raw XML

I'm sorry but can you explain what you are trying to do in more detail?
Are you adding an HTML widget to include the JS code on your page?

Thanks,
Jinwoo

On Wed, Jun 9, 2010 at 11:34 AM, ookwudili <ookwudili@googlemail.com> wrote:
Referring to NameSpace attributes of you Schema, qualified and
unqualified..

On 5 June, 16:26, ookwudili <ookwud...@googlemail.com> wrote:
> hello,
>
> following a fair few hours examining the source generated by blogspot,
> looking for the most applicable place in code to make the addition of
> custom JavaScript. However it appeared that your XML was too well
> formed as to embed all if not most of the additional source
> contributed by the user, disabling their source from direct edit along
> with other code - replacing it with '<data:content/>' altering the
> rules and transforming users contributions in affect allowing only one
> real way to make future edits via the applicable form fields / for the
> widgets although these are not true API's as directed on your site to
> build.
>
> Are any amendments planned to this in the near future?
>
> example source;
> -----------------------
>
> <b:widget id='HTML8' locked='false' title='Feed' type='HTML'>
> <b:includable id='main'>
>   <!-- only display title if it's non-empty -->
>   <b:if cond='data:title != &quot;&quot;'>
>     <h2 class='title'><data:title/></h2>
>   </b:if>
>   <div class='widget-content'>
>     <data:content/>
>   </div>
> <b:include name='quickedit'/>
> </b:includable>
> </b:widget>
>
> using '<data:content/>' as a referrer to the following source, grabbed
> from 'socialmention';
>
> <script type="text/javascript">
> // search phrase (replace this)
> var smSearchPhrase = 'socialmention';
> // title (optional)
> var smTitle = 'Realtime Buzz';
> // items per page
> var smItemsPerPage = 7;
> // show or hide user profile images
> var smShowUserImages = true;
> // widget font size in pixels
> var smFontSize = 11;
> // height of the widget
> var smWidgetHeight = 500;
> // sources (optional, comment out for "all")
> //var smSources = ['twitter', 'googleblog', 'brightkite', 'delicious',
> 'friendfeed', 'flickr', 'identica', 'youare', 'digg'];
> </script>
> <script type="text/javascript" language="javascript" src="http://
> socialmention.com/widgets/buzz.js"></script>
>
> worth a mention..
>
> http://cmt3095.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: Editing raw XML

Referring to NameSpace attributes of you Schema, qualified and
unqualified..

On 5 June, 16:26, ookwudili <ookwud...@googlemail.com> wrote:
> hello,
>
> following a fair few hours examining the source generated by blogspot,
> looking for the most applicable place in code to make the addition of
> custom JavaScript. However it appeared that your XML was too well
> formed as to embed all if not most of the additional source
> contributed by the user, disabling their source from direct edit along
> with other code - replacing it with '<data:content/>' altering the
> rules and transforming users contributions in affect allowing only one
> real way to make future edits via the applicable form fields / for the
> widgets although these are not true API's as directed on your site to
> build.
>
> Are any amendments planned to this in the near future?
>
> example source;
> -----------------------
>
> <b:widget id='HTML8' locked='false' title='Feed' type='HTML'>
> <b:includable id='main'>
>   <!-- only display title if it's non-empty -->
>   <b:if cond='data:title != &quot;&quot;'>
>     <h2 class='title'><data:title/></h2>
>   </b:if>
>   <div class='widget-content'>
>     <data:content/>
>   </div>
> <b:include name='quickedit'/>
> </b:includable>
> </b:widget>
>
> using '<data:content/>' as a referrer to the following source, grabbed
> from 'socialmention';
>
> <script type="text/javascript">
> // search phrase (replace this)
> var smSearchPhrase = 'socialmention';
> // title (optional)
> var smTitle = 'Realtime Buzz';
> // items per page
> var smItemsPerPage = 7;
> // show or hide user profile images
> var smShowUserImages = true;
> // widget font size in pixels
> var smFontSize = 11;
> // height of the widget
> var smWidgetHeight = 500;
> // sources (optional, comment out for "all")
> //var smSources = ['twitter', 'googleblog', 'brightkite', 'delicious',
> 'friendfeed', 'flickr', 'identica', 'youare', 'digg'];
> </script>
> <script type="text/javascript" language="javascript" src="http://
> socialmention.com/widgets/buzz.js"></script>
>
> worth a mention..
>
> http://cmt3095.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: Create new blogger post API

Hi, I am not too sure but check if this can help you:
http://code.google.com/apis/blogger/docs/2.0/developers_guide.html

On Jun 6, 8:10 pm, "vallentin...@gmail.com" <vallentin...@gmail.com>
wrote:
> Hi,
>
> I am new to blogging, so i dont know what to do. I hope you can help
> me.
>
> I have a website where users write their poems. The poems are stored
> in a xml file. What I want to do is to allow users to publish their
> poems to blogs. So with a simple click, they will go to blogger and
> publish their poem. The problem is that I dont know how to do that,
> please help me. Is there an API or something? PHP would be great...
>
> Thank you

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Tuesday, June 8, 2010

[bloggerDev] Re: Obtaining ALL entry URLs

Hiiii.... I want to obtain the URL's of all the updated blogs (in the
entire blogger site) for a particular day (using Java)... Is it
possible...
Please drop your valuable suggestions...

On Jun 4, 3:07 pm, soujiro0725 <soujiro0...@gmail.com> wrote:
> Wow! Thanks.  It was simpler than I thought!
>
> soujiro0725

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Sunday, June 6, 2010

[bloggerDev] Create new blogger post API

Hi,

I am new to blogging, so i dont know what to do. I hope you can help
me.

I have a website where users write their poems. The poems are stored
in a xml file. What I want to do is to allow users to publish their
poems to blogs. So with a simple click, they will go to blogger and
publish their poem. The problem is that I dont know how to do that,
please help me. Is there an API or something? PHP would be great...

Thank you

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Saturday, June 5, 2010

[bloggerDev] Editing raw XML

hello,

following a fair few hours examining the source generated by blogspot,
looking for the most applicable place in code to make the addition of
custom JavaScript. However it appeared that your XML was too well
formed as to embed all if not most of the additional source
contributed by the user, disabling their source from direct edit along
with other code - replacing it with '<data:content/>' altering the
rules and transforming users contributions in affect allowing only one
real way to make future edits via the applicable form fields / for the
widgets although these are not true API's as directed on your site to
build.

Are any amendments planned to this in the near future?

example source;
-----------------------

<b:widget id='HTML8' locked='false' title='Feed' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>

using '<data:content/>' as a referrer to the following source, grabbed
from 'socialmention';

<script type="text/javascript">
// search phrase (replace this)
var smSearchPhrase = 'socialmention';
// title (optional)
var smTitle = 'Realtime Buzz';
// items per page
var smItemsPerPage = 7;
// show or hide user profile images
var smShowUserImages = true;
// widget font size in pixels
var smFontSize = 11;
// height of the widget
var smWidgetHeight = 500;
// sources (optional, comment out for "all")
//var smSources = ['twitter', 'googleblog', 'brightkite', 'delicious',
'friendfeed', 'flickr', 'identica', 'youare', 'digg'];
</script>
<script type="text/javascript" language="javascript" src="http://
socialmention.com/widgets/buzz.js"></script>

worth a mention..

http://cmt3095.blogspot.com/

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Friday, June 4, 2010

[bloggerDev] Re: Obtaining ALL entry URLs

Wow! Thanks. It was simpler than I thought!

soujiro0725


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Re: [bloggerDev] Obtaining ALL entry URLs

You should use URL parameters like 'start-index' and 'max-results' to retrieve all the posts. See the Blogger API document at http://code.google.com/apis/blogger/docs/2.0/developers_guide_protocol.html

Thanks,
Jinwoo

On Thu, Jun 3, 2010 at 8:04 PM, soujiro0725 <soujiro0725@gmail.com> wrote:
hi.  I am trying to obtain URLs of ALL blog entries using Ruby.
But Ruby itself does not seem important here, though the code is given
below.

The feed URL of a blog looks like...

http://soichi-memos.blogspot.com/feeds/posts/default

or

http://www.blogger.com/feeds/8431963099352886303/posts/default

but the attempt to get URLs of entries gives only a portion of the
entire blog. (in this case only 25 of them)
Accessing these feed URLs gives XMLs containing only 25 entries, so I
am guessing that the problem is the setting of Blogger...?
But I am not sure.

Could anyone help me obtain ALL URLs of the blog?


#-------Ruby code starts here-----------------------------
require "rubygems"
require "open-uri"
require "nokogiri"

blog_feed = 'http://soichi-memos.blogspot.com/feeds/posts/default'

file = "list_url.txt"
filename = File.open(file, "w")

xml = Nokogiri::XML(open(blog_feed))

xml.search("link").each do |tag|
 if tag.get_attribute("rel") == "alternate" then
   url = tag.get_attribute('href')
   filename.write(url)
   filename.write("\n")
 end
end

filename.close
#-------------Ruby code ends here
---------------------------------------

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.


--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

Thursday, June 3, 2010

[bloggerDev] Obtaining ALL entry URLs

hi. I am trying to obtain URLs of ALL blog entries using Ruby.
But Ruby itself does not seem important here, though the code is given
below.

The feed URL of a blog looks like...

http://soichi-memos.blogspot.com/feeds/posts/default

or

http://www.blogger.com/feeds/8431963099352886303/posts/default

but the attempt to get URLs of entries gives only a portion of the
entire blog. (in this case only 25 of them)
Accessing these feed URLs gives XMLs containing only 25 entries, so I
am guessing that the problem is the setting of Blogger...?
But I am not sure.

Could anyone help me obtain ALL URLs of the blog?


#-------Ruby code starts here-----------------------------
require "rubygems"
require "open-uri"
require "nokogiri"

blog_feed = 'http://soichi-memos.blogspot.com/feeds/posts/default'

file = "list_url.txt"
filename = File.open(file, "w")

xml = Nokogiri::XML(open(blog_feed))

xml.search("link").each do |tag|
if tag.get_attribute("rel") == "alternate" then
url = tag.get_attribute('href')
filename.write(url)
filename.write("\n")
end
end

filename.close
#-------------Ruby code ends here
---------------------------------------

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.

[bloggerDev] Re: Obtaining URLs of Blogger entries

Thanks! It did work.

soujiro0725


On 5月31日, 午前3:48, "Aline M." <aline.maco...@gmail.com> wrote:
> simple :-)
>
> entry.getEditLink().getHref()
>
> 2010/5/20 soujiro0725 <soujiro0...@gmail.com>
>
>
>
> > Hi, I'm trying to obtain URLs of blog entries from Blogger using
> > Blogger API with Java libraries.
> > I was not sure how, so I used "getEditLink()" as shown below.  But
> > what I got was...
>
> > -----------------------------------------
> > the title of an entry
> >        com.google.gdata.data.Link@8f4fb3
> > ...
> > -----------------------------------------
>
> > what is this?
> > How can I get URLs?
>
> > Thanks in advance.  The code is below.
>
> > --------------------------------------------------------------------
> > import com.google.gdata.client.*;
> > import com.google.gdata.data.*;
> > import com.google.gdata.util.*;
> > import java.io.IOException;
> > import java.net.URL;
>
> > public class TestBloggerFeedOutput {
>
> >        public static void main(String[] args) {
>
> >                String blogId = "xxxxx";
> >                try {
> >                        GoogleService myService = new
> > GoogleService("blogger", "list-blog-
> > entries");
> >                        printAllPosts(myService, blogId);
> >                } catch (ServiceException e) {
> >                        System.out.println(e.getMessage());
> >                } catch (IOException e) {
> >                        System.out.println(e.getMessage());
> >                }
> >        }
> >        public static void printAllPosts(GoogleService myService, String
> > blogId) throws ServiceException, IOException {
>
> >                final URL feedUrl = new URL("http://www.blogger.com/feeds/"
> > + blogId
> > + "/posts/default");
> >                Feed resultFeed = myService.getFeed(feedUrl, Feed.class);
> >                System.out.println(resultFeed.getTitle().getPlainText());
> >                for (int i = 0; i < resultFeed.getEntries().size(); i++) {
> >                        Entry entry = resultFeed.getEntries().get(i);
> >                        System.out.println("\t" +
> > entry.getTitle().getPlainText());
>
> >                        System.out.println("\t" + entry.getEditLink());
> >            //<--
> > HERE!!!
> >                }
> >                System.out.println();
> >        }
>
> > }
> > //-----------------the code ends
> > here------------------------------------------------------------
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Blogger Developer Group" group.
> > To post to this group, send email to bloggerdev@googlegroups.com.
> > To unsubscribe from this group, send email to
> > bloggerdev+unsubscribe@googlegroups.com<bloggerdev%2Bunsubscribe@googlegrou ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.

--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.