html_parser_oes



In [2]:
import re
import urllib2
from urllib2 import Request
from bs4 import BeautifulSoup

In [3]:
url = 'https://www.khronos.org/registry/gles/'
html = urllib2.urlopen(url)
bsObj = BeautifulSoup(html.read())

In [4]:
li_list = bsObj.find('ol').findAll('li')
len(li_list)


Out[4]:
245

In [5]:
index = 1
for li in li_list:
    link = li.find('a').get('href')
    name = li.find('a').get_text()
    print index, url+link, name
    index += 1


1 https://www.khronos.org/registry/gles/extensions/OES/OES_blend_equation_separate.txt GL_OES_blend_equation_separate
2 https://www.khronos.org/registry/gles/extensions/OES/OES_blend_func_separate.txt GL_OES_blend_func_separate
3 https://www.khronos.org/registry/gles/extensions/OES/OES_blend_subtract.txt GL_OES_blend_subtract
4 https://www.khronos.org/registry/gles/extensions/OES/OES_byte_coordinates.txt GL_OES_byte_coordinates
5 https://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt GL_OES_compressed_ETC1_RGB8_texture
6 https://www.khronos.org/registry/gles/extensions/OES/OES_compressed_paletted_texture.txt GL_OES_compressed_paletted_texture
7 https://www.khronos.org/registry/gles/extensions/OES/OES_draw_texture.txt GL_OES_draw_texture
8 https://www.khronos.org/registry/gles/extensions/OES/OES_extended_matrix_palette.txt GL_OES_extended_matrix_palette
9 https://www.khronos.org/registry/gles/extensions/OES/OES_fixed_point.txt GL_OES_fixed_point
10 https://www.khronos.org/registry/gles/extensions/OES/OES_framebuffer_object.txt GL_OES_framebuffer_object
11 https://www.khronos.org/registry/gles/extensions/OES/OES_matrix_get.txt GL_OES_matrix_get
12 https://www.khronos.org/registry/gles/extensions/OES/OES_matrix_palette.txt GL_OES_matrix_palette
13 https://www.khronos.org/registry/gles/extensions/OES/OES_point_size_array.txt GL_OES_point_size_array
14 https://www.khronos.org/registry/gles/extensions/OES/OES_point_sprite.txt GL_OES_point_sprite
15 https://www.khronos.org/registry/gles/extensions/OES/OES_query_matrix.txt GL_OES_query_matrix
16 https://www.khronos.org/registry/gles/extensions/OES/OES_read_format.txt GL_OES_read_format
17 https://www.khronos.org/registry/gles/extensions/OES/OES_single_precision.txt GL_OES_single_precision
18 https://www.khronos.org/registry/gles/extensions/OES/OES_stencil_wrap.txt GL_OES_stencil_wrap
19 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_cube_map.txt GL_OES_texture_cube_map
20 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_env_crossbar.txt GL_OES_texture_env_crossbar
21 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_mirrored_repeat.txt GL_OES_texture_mirrored_repeat
22 https://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image.txt GL_OES_EGL_image
23 https://www.khronos.org/registry/gles/extensions/OES/OES_depth24.txt GL_OES_depth24
24 https://www.khronos.org/registry/gles/extensions/OES/OES_depth32.txt GL_OES_depth32
25 https://www.khronos.org/registry/gles/extensions/OES/OES_element_index_uint.txt GL_OES_element_index_uint
26 https://www.khronos.org/registry/gles/extensions/OES/OES_fbo_render_mipmap.txt GL_OES_fbo_render_mipmap
27 https://www.khronos.org/registry/gles/extensions/OES/OES_fragment_precision_high.txt GL_OES_fragment_precision_high
28 https://www.khronos.org/registry/gles/extensions/OES/OES_mapbuffer.txt GL_OES_mapbuffer
29 https://www.khronos.org/registry/gles/extensions/OES/OES_rgb8_rgba8.txt GL_OES_rgb8_rgba8
30 https://www.khronos.org/registry/gles/extensions/OES/OES_stencil1.txt GL_OES_stencil1
31 https://www.khronos.org/registry/gles/extensions/OES/OES_stencil4.txt GL_OES_stencil4
32 https://www.khronos.org/registry/gles/extensions/OES/OES_stencil8.txt GL_OES_stencil8
33 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_3D.txt GL_OES_texture_3D
34 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_float_linear.txt GL_OES_texture_float_linear
35 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_float.txt GL_OES_texture_float
36 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_npot.txt GL_OES_texture_npot
37 https://www.khronos.org/registry/gles/extensions/OES/OES_vertex_half_float.txt GL_OES_vertex_half_float
38 https://www.khronos.org/registry/gles/extensions/AMD/AMD_compressed_3DC_texture.txt GL_AMD_compressed_3DC_texture
39 https://www.khronos.org/registry/gles/extensions/AMD/AMD_compressed_ATC_texture.txt GL_AMD_compressed_ATC_texture
40 https://www.khronos.org/registry/gles/extensions/EXT/texture_filter_anisotropic.txt GL_EXT_texture_filter_anisotropic
41 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_type_2_10_10_10_REV.txt GL_EXT_texture_type_2_10_10_10_REV
42 https://www.khronos.org/registry/gles/extensions/OES/OES_depth_texture.txt GL_OES_depth_texture
43 https://www.khronos.org/registry/gles/extensions/OES/OES_packed_depth_stencil.txt GL_OES_packed_depth_stencil
44 https://www.khronos.org/registry/gles/extensions/OES/OES_standard_derivatives.txt GL_OES_standard_derivatives
45 https://www.khronos.org/registry/gles/extensions/OES/OES_vertex_type_10_10_10_2.txt GL_OES_vertex_type_10_10_10_2
46 https://www.khronos.org/registry/gles/extensions/OES/OES_get_program_binary.txt GL_OES_get_program_binary
47 https://www.khronos.org/registry/gles/extensions/AMD/AMD_program_binary_Z400.txt GL_AMD_program_binary_Z400
48 https://www.khronos.org/registry/gles/extensions/EXT/texture_compression_dxt1.txt GL_EXT_texture_compression_dxt1
49 https://www.khronos.org/registry/gles/extensions/AMD/performance_monitor.txt GL_AMD_performance_monitor
50 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_format_BGRA8888.txt GL_EXT_texture_format_BGRA8888
51 https://www.khronos.org/registry/gles/extensions/NV/fence.txt GL_NV_fence
52 https://www.khronos.org/registry/gles/extensions/IMG/IMG_read_format.txt GL_IMG_read_format
53 https://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc.txt GL_IMG_texture_compression_pvrtc
54 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_driver_control.txt GL_QCOM_driver_control
55 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_performance_monitor_global_mode.txt GL_QCOM_performance_monitor_global_mode
56 https://www.khronos.org/registry/gles/extensions/IMG/IMG_user_clip_plane.txt GL_IMG_user_clip_plane
57 https://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_env_enhanced_fixed_function.txt GL_IMG_texture_env_enhanced_fixed_function
58 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_texture_2D_limited_npot.txt GL_APPLE_texture_2D_limited_npot
59 https://www.khronos.org/registry/gles/extensions/EXT/texture_lod_bias.txt GL_EXT_texture_lod_bias
60 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_writeonly_rendering.txt GL_QCOM_writeonly_rendering
61 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_extended_get.txt GL_QCOM_extended_get
62 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_extended_get2.txt GL_QCOM_extended_get2
63 https://www.khronos.org/registry/gles/extensions/EXT/EXT_discard_framebuffer.txt GL_EXT_discard_framebuffer
64 https://www.khronos.org/registry/gles/extensions/EXT/blend_minmax.txt GL_EXT_blend_minmax
65 https://www.khronos.org/registry/gles/extensions/EXT/EXT_read_format_bgra.txt GL_EXT_read_format_bgra
66 https://www.khronos.org/registry/gles/extensions/IMG/IMG_program_binary.txt GL_IMG_program_binary
67 https://www.khronos.org/registry/gles/extensions/IMG/IMG_shader_binary.txt GL_IMG_shader_binary
68 https://www.khronos.org/registry/gles/extensions/EXT/multi_draw_arrays.txt GL_EXT_multi_draw_arrays
69 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_tiled_rendering.txt GL_QCOM_tiled_rendering
70 https://www.khronos.org/registry/gles/extensions/OES/OES_vertex_array_object.txt GL_OES_vertex_array_object
71 https://www.khronos.org/registry/gles/extensions/NV/EGL_NV_coverage_sample.txt GL_NV_coverage_sample
72 https://www.khronos.org/registry/gles/extensions/NV/EGL_NV_depth_nonlinear.txt GL_NV_depth_nonlinear
73 https://www.khronos.org/registry/gles/extensions/IMG/IMG_multisampled_render_to_texture.txt GL_IMG_multisampled_render_to_texture
74 https://www.khronos.org/registry/gles/extensions/OES/EGL_KHR_fence_sync.txt GL_OES_EGL_sync
75 https://www.khronos.org/registry/gles/extensions/APPLE/rgb_422.txt GL_APPLE_rgb_422
76 https://www.khronos.org/registry/gles/extensions/EXT/EXT_shader_texture_lod.txt GL_EXT_shader_texture_lod
77 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_framebuffer_multisample.txt GL_APPLE_framebuffer_multisample
78 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_texture_format_BGRA8888.txt GL_APPLE_texture_format_BGRA8888
79 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_texture_max_level.txt GL_APPLE_texture_max_level
80 https://www.khronos.org/registry/gles/extensions/ARM/ARM_mali_shader_binary.txt GL_ARM_mali_shader_binary
81 https://www.khronos.org/registry/gles/extensions/ARM/ARM_rgba8.txt GL_ARM_rgba8
82 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_framebuffer_blit.txt GL_ANGLE_framebuffer_blit
83 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_framebuffer_multisample.txt GL_ANGLE_framebuffer_multisample
84 https://www.khronos.org/registry/gles/extensions/VIV/VIV_shader_binary.txt GL_VIV_shader_binary
85 https://www.khronos.org/registry/gles/extensions/EXT/EXT_frag_depth.txt GL_EXT_frag_depth
86 https://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external.txt GL_OES_EGL_image_external
87 https://www.khronos.org/registry/gles/extensions/DMP/DMP_shader_binary.txt GL_DMP_shader_binary
88 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_alpha_test.txt GL_QCOM_alpha_test
89 https://www.khronos.org/registry/gles/extensions/EXT/EXT_unpack_subimage.txt GL_EXT_unpack_subimage
90 https://www.khronos.org/registry/gles/extensions/NV/NV_draw_buffers.txt GL_NV_draw_buffers
91 https://www.khronos.org/registry/gles/extensions/NV/NV_fbo_color_attachments.txt GL_NV_fbo_color_attachments
92 https://www.khronos.org/registry/gles/extensions/NV/NV_read_buffer.txt GL_NV_read_buffer
93 https://www.khronos.org/registry/gles/extensions/NV/NV_read_depth_stencil.txt GL_NV_read_depth_stencil
94 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_compression_s3tc_update.txt GL_NV_texture_compression_s3tc_update
95 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_npot_2D_mipmap.txt GL_NV_texture_npot_2D_mipmap
96 https://www.khronos.org/registry/gles/extensions/EXT/EXT_color_buffer_half_float.txt GL_EXT_color_buffer_half_float
97 https://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_label.txt GL_EXT_debug_label
98 https://www.khronos.org/registry/gles/extensions/EXT/EXT_debug_marker.txt GL_EXT_debug_marker
99 https://www.khronos.org/registry/gles/extensions/EXT/EXT_occlusion_query_boolean.txt GL_EXT_occlusion_query_boolean
100 https://www.khronos.org/registry/gles/extensions/EXT/EXT_separate_shader_objects.txt GL_EXT_separate_shader_objects
101 https://www.khronos.org/registry/gles/extensions/EXT/EXT_shadow_samplers.txt GL_EXT_shadow_samplers
102 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_rg.txt GL_EXT_texture_rg
103 https://www.khronos.org/registry/gles/extensions/NV/NV_EGL_stream_consumer_external.txt GL_NV_EGL_stream_consumer_external
104 https://www.khronos.org/registry/gles/extensions/EXT/EXT_sRGB.txt GL_EXT_sRGB
105 https://www.khronos.org/registry/gles/extensions/EXT/EXT_multisampled_render_to_texture.txt GL_EXT_multisampled_render_to_texture
106 https://www.khronos.org/registry/gles/extensions/EXT/EXT_robustness.txt GL_EXT_robustness
107 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_storage.txt GL_EXT_texture_storage
108 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_instanced_arrays.txt GL_ANGLE_instanced_arrays
109 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_pack_reverse_row_order.txt GL_ANGLE_pack_reverse_row_order
110 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_texture_compression_dxt.txt GL_ANGLE_texture_compression_dxt3
111 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_texture_usage.txt GL_ANGLE_texture_usage
112 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_translated_shader_source.txt GL_ANGLE_translated_shader_source
113 https://www.khronos.org/registry/gles/extensions/FJ/shader_binary_GCCSO.txt GL_FJ_shader_binary_GCCSO
114 https://www.khronos.org/registry/gles/extensions/OES/OES_required_internalformat.txt GL_OES_required_internalformat
115 https://www.khronos.org/registry/gles/extensions/OES/OES_surfaceless_context.txt GL_OES_surfaceless_context
116 https://www.khronos.org/registry/gles/extensions/KHR/texture_compression_astc_hdr.txt GL_KHR_texture_compression_astc_hdr
117 https://www.khronos.org/registry/gles/extensions/KHR/debug.txt GL_KHR_debug
118 https://www.khronos.org/registry/gles/extensions/QCOM/QCOM_binning_control.txt GL_QCOM_binning_control
119 https://www.khronos.org/registry/gles/extensions/ARM/ARM_mali_program_binary.txt GL_ARM_mali_program_binary
120 https://www.khronos.org/registry/gles/extensions/EXT/EXT_map_buffer_range.txt GL_EXT_map_buffer_range
121 https://www.khronos.org/registry/gles/extensions/EXT/EXT_shader_framebuffer_fetch.txt GL_EXT_shader_framebuffer_fetch
122 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_copy_texture_levels.txt GL_APPLE_copy_texture_levels
123 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_sync.txt GL_APPLE_sync
124 https://www.khronos.org/registry/gles/extensions/EXT/EXT_multiview_draw_buffers.txt GL_EXT_multiview_draw_buffers
125 https://www.khronos.org/registry/gles/extensions/NV/draw_texture.txt GL_NV_draw_texture
126 https://www.khronos.org/registry/gles/extensions/NV/NV_packed_float.txt GL_NV_packed_float
127 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_compression_s3tc.txt GL_NV_texture_compression_s3tc
128 https://www.khronos.org/registry/gles/extensions/NV/NV_3dvision_settings.txt GL_NV_3dvision_settings
129 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_compression_latc.txt GL_NV_texture_compression_latc
130 https://www.khronos.org/registry/gles/extensions/NV/NV_platform_binary.txt GL_NV_platform_binary
131 https://www.khronos.org/registry/gles/extensions/NV/NV_pack_subimage.txt GL_NV_pack_subimage
132 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_array.txt GL_NV_texture_array
133 https://www.khronos.org/registry/gles/extensions/NV/NV_pixel_buffer_object.txt GL_NV_pixel_buffer_object
134 https://www.khronos.org/registry/gles/extensions/NV/NV_bgr.txt GL_NV_bgr
135 https://www.khronos.org/registry/gles/extensions/OES/OES_depth_texture_cube_map.txt GL_OES_depth_texture_cube_map
136 https://www.khronos.org/registry/gles/extensions/EXT/EXT_color_buffer_float.txt GL_EXT_color_buffer_float
137 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_depth_texture.txt GL_ANGLE_depth_texture
138 https://www.khronos.org/registry/gles/extensions/ANGLE/ANGLE_program_binary.txt GL_ANGLE_program_binary
139 https://www.khronos.org/registry/gles/extensions/IMG/IMG_texture_compression_pvrtc2.txt GL_IMG_texture_compression_pvrtc2
140 https://www.khronos.org/registry/gles/extensions/NV/NV_draw_instanced.txt GL_NV_draw_instanced
141 https://www.khronos.org/registry/gles/extensions/NV/NV_framebuffer_blit.txt GL_NV_framebuffer_blit
142 https://www.khronos.org/registry/gles/extensions/NV/NV_framebuffer_multisample.txt GL_NV_framebuffer_multisample
143 https://www.khronos.org/registry/gles/extensions/NV/NV_generate_mipmap_sRGB.txt GL_NV_generate_mipmap_sRGB
144 https://www.khronos.org/registry/gles/extensions/NV/NV_instanced_arrays.txt GL_NV_instanced_arrays
145 https://www.khronos.org/registry/gles/extensions/NV/NV_shadow_samplers_array.txt GL_NV_shadow_samplers_array
146 https://www.khronos.org/registry/gles/extensions/NV/NV_shadow_samplers_cube.txt GL_NV_shadow_samplers_cube
147 https://www.khronos.org/registry/gles/extensions/NV/NV_sRGB_formats.txt GL_NV_sRGB_formats
148 https://www.khronos.org/registry/gles/extensions/NV/NV_texture_border_clamp.txt GL_NV_texture_border_clamp
149 https://www.khronos.org/registry/gles/extensions/EXT/EXT_disjoint_timer_query.txt GL_EXT_disjoint_timer_query
150 https://www.khronos.org/registry/gles/extensions/EXT/EXT_draw_buffers.txt GL_EXT_draw_buffers
151 https://www.khronos.org/registry/gles/extensions/EXT/texture_sRGB_decode.txt GL_EXT_texture_sRGB_decode
152 https://www.khronos.org/registry/gles/extensions/EXT/EXT_sRGB_write_control.txt GL_EXT_sRGB_write_control
153 https://www.khronos.org/registry/gles/extensions/EXT/texture_compression_s3tc.txt GL_EXT_texture_compression_s3tc
154 https://www.khronos.org/registry/gles/extensions/EXT/EXT_pvrtc_sRGB.txt GL_EXT_pvrtc_sRGB
155 https://www.khronos.org/registry/gles/extensions/EXT/EXT_instanced_arrays.txt GL_EXT_instanced_arrays
156 https://www.khronos.org/registry/gles/extensions/EXT/draw_instanced.txt GL_EXT_draw_instanced
157 https://www.khronos.org/registry/gles/extensions/NV/NV_copy_buffer.txt GL_NV_copy_buffer
158 https://www.khronos.org/registry/gles/extensions/NV/NV_explicit_attrib_location.txt GL_NV_explicit_attrib_location
159 https://www.khronos.org/registry/gles/extensions/NV/NV_non_square_matrices.txt GL_NV_non_square_matrices
160 https://www.khronos.org/registry/gles/extensions/EXT/shader_integer_mix.txt GL_EXT_shader_integer_mix
161 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_compression_astc.txt GL_OES_texture_compression_astc
162 https://www.khronos.org/registry/gles/extensions/NV/blend_equation_advanced.txt GL_NV_blend_equation_advanced
163 https://www.khronos.org/registry/gles/extensions/INTEL/performance_query.txt GL_INTEL_performance_query
164 https://www.khronos.org/registry/gles/extensions/ARM/ARM_shader_framebuffer_fetch.txt GL_ARM_shader_framebuffer_fetch
165 https://www.khronos.org/registry/gles/extensions/ARM/ARM_shader_framebuffer_fetch_depth_stencil.txt GL_ARM_shader_framebuffer_fetch_depth_stencil
166 https://www.khronos.org/registry/gles/extensions/EXT/EXT_shader_pixel_local_storage.txt GL_EXT_shader_pixel_local_storage
167 https://www.khronos.org/registry/gles/extensions/KHR/blend_equation_advanced.txt GL_KHR_blend_equation_advanced
168 https://www.khronos.org/registry/gles/extensions/OES/OES_sample_shading.txt GL_OES_sample_shading
169 https://www.khronos.org/registry/gles/extensions/OES/OES_sample_variables.txt GL_OES_sample_variables
170 https://www.khronos.org/registry/gles/extensions/OES/OES_shader_image_atomic.txt GL_OES_shader_image_atomic
171 https://www.khronos.org/registry/gles/extensions/OES/OES_shader_multisample_interpolation.txt GL_OES_shader_multisample_interpolation
172 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_stencil8.txt GL_OES_texture_stencil8
173 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_storage_multisample_2d_array.txt GL_OES_texture_storage_multisample_2d_array
174 https://www.khronos.org/registry/gles/extensions/EXT/EXT_copy_image.txt GL_EXT_copy_image
175 https://www.khronos.org/registry/gles/extensions/EXT/EXT_draw_buffers_indexed.txt GL_EXT_draw_buffers_indexed
176 https://www.khronos.org/registry/gles/extensions/EXT/EXT_geometry_shader.txt GL_EXT_geometry_shader
177 https://www.khronos.org/registry/gles/extensions/EXT/EXT_gpu_shader5.txt GL_EXT_gpu_shader5
178 https://www.khronos.org/registry/gles/extensions/EXT/EXT_shader_implicit_conversions.txt GL_EXT_shader_implicit_conversions
179 https://www.khronos.org/registry/gles/extensions/EXT/EXT_shader_io_blocks.txt GL_EXT_shader_io_blocks
180 https://www.khronos.org/registry/gles/extensions/EXT/EXT_tessellation_shader.txt GL_EXT_tessellation_shader
181 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_border_clamp.txt GL_EXT_texture_border_clamp
182 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_buffer.txt GL_EXT_texture_buffer
183 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_cube_map_array.txt GL_EXT_texture_cube_map_array
184 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_view.txt GL_EXT_texture_view
185 https://www.khronos.org/registry/gles/extensions/EXT/EXT_primitive_bounding_box.txt GL_EXT_primitive_bounding_box
186 https://www.khronos.org/registry/gles/extensions/ANDROID/ANDROID_extension_pack_es31a.txt GL_ANDROID_extension_pack_es31a
187 https://www.khronos.org/registry/gles/extensions/EXT/EXT_compressed_ETC1_RGB8_sub_texture.txt GL_EXT_compressed_ETC1_RGB8_sub_texture
188 https://www.khronos.org/registry/gles/extensions/KHR/robust_buffer_access_behavior.txt GL_KHR_robust_buffer_access_behavior
189 https://www.khronos.org/registry/gles/extensions/KHR/robustness.txt GL_KHR_robustness
190 https://www.khronos.org/registry/gles/extensions/KHR/context_flush_control.txt GL_KHR_context_flush_control
191 https://www.khronos.org/registry/gles/extensions/DMP/DMP_program_binary.txt GL_DMP_program_binary
192 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_clip_distance.txt GL_APPLE_clip_distance
193 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_color_buffer_packed_float.txt GL_APPLE_color_buffer_packed_float
194 https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_texture_packed_float.txt GL_APPLE_texture_packed_float
195 https://www.khronos.org/registry/gles/extensions/NV/internalformat_sample_query.txt GL_NV_internalformat_sample_query
196 https://www.khronos.org/registry/gles/extensions/NV/bindless_texture.txt GL_NV_bindless_texture
197 https://www.khronos.org/registry/gles/extensions/NV/conditional_render.txt GL_NV_conditional_render
198 https://www.khronos.org/registry/gles/extensions/NV/path_rendering.txt GL_NV_path_rendering
199 https://www.khronos.org/registry/gles/extensions/NV/NV_image_formats.txt GL_NV_image_formats
200 https://www.khronos.org/registry/gles/extensions/NV/NV_shader_noperspective_interpolation.txt GL_NV_shader_noperspective_interpolation
201 https://www.khronos.org/registry/gles/extensions/NV/NV_viewport_array.txt GL_NV_viewport_array
202 https://www.khronos.org/registry/gles/extensions/EXT/EXT_base_instance.txt GL_EXT_base_instance
203 https://www.khronos.org/registry/gles/extensions/EXT/EXT_draw_elements_base_vertex.txt GL_EXT_draw_elements_base_vertex
204 https://www.khronos.org/registry/gles/extensions/EXT/EXT_multi_draw_indirect.txt GL_EXT_multi_draw_indirect
205 https://www.khronos.org/registry/gles/extensions/EXT/EXT_render_snorm.txt GL_EXT_render_snorm
206 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_norm16.txt GL_EXT_texture_norm16
207 https://www.khronos.org/registry/gles/extensions/OES/OES_copy_image.txt GL_OES_copy_image
208 https://www.khronos.org/registry/gles/extensions/OES/OES_draw_buffers_indexed.txt GL_OES_draw_buffers_indexed
209 https://www.khronos.org/registry/gles/extensions/OES/OES_geometry_shader.txt GL_OES_geometry_shader
210 https://www.khronos.org/registry/gles/extensions/OES/OES_gpu_shader5.txt GL_OES_gpu_shader5
211 https://www.khronos.org/registry/gles/extensions/OES/OES_primitive_bounding_box.txt GL_OES_primitive_bounding_box
212 https://www.khronos.org/registry/gles/extensions/OES/OES_shader_io_blocks.txt GL_OES_shader_io_blocks
213 https://www.khronos.org/registry/gles/extensions/OES/OES_tessellation_shader.txt GL_OES_tessellation_shader
214 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_border_clamp.txt GL_OES_texture_border_clamp
215 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_buffer.txt GL_OES_texture_buffer
216 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_cube_map_array.txt GL_OES_texture_cube_map_array
217 https://www.khronos.org/registry/gles/extensions/OES/OES_texture_view.txt GL_OES_texture_view
218 https://www.khronos.org/registry/gles/extensions/OES/OES_draw_elements_base_vertex.txt GL_OES_draw_elements_base_vertex
219 https://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external_essl3.txt GL_OES_EGL_image_external_essl3
220 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_sRGB_R8.txt GL_EXT_texture_sRGB_R8
221 https://www.khronos.org/registry/gles/extensions/EXT/EXT_YUV_target.txt GL_EXT_yuv_target
222 https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_sRGB_RG8.txt GL_EXT_texture_sRGB_RG8
223 https://www.khronos.org/registry/gles/extensions/EXT/EXT_float_blend.txt GL_EXT_float_blend
224 https://www.khronos.org/registry/gles/extensions/EXT/post_depth_coverage.txt GL_EXT_post_depth_coverage
225 https://www.khronos.org/registry/gles/extensions/EXT/raster_multisample.txt GL_EXT_raster_multisample
226 https://www.khronos.org/registry/gles/extensions/EXT/texture_filter_minmax.txt GL_EXT_texture_filter_minmax
227 https://www.khronos.org/registry/gles/extensions/NV/conservative_raster.txt GL_NV_conservative_raster
228 https://www.khronos.org/registry/gles/extensions/NV/fragment_coverage_to_color.txt GL_NV_fragment_coverage_to_color
229 https://www.khronos.org/registry/gles/extensions/NV/fragment_shader_interlock.txt GL_NV_fragment_shader_interlock
230 https://www.khronos.org/registry/gles/extensions/NV/framebuffer_mixed_samples.txt GL_NV_framebuffer_mixed_samples
231 https://www.khronos.org/registry/gles/extensions/NV/fill_rectangle.txt GL_NV_fill_rectangle
232 https://www.khronos.org/registry/gles/extensions/NV/geometry_shader_passthrough.txt GL_NV_geometry_shader_passthrough
233 https://www.khronos.org/registry/gles/extensions/NV/path_rendering_shared_edge.txt GL_NV_path_rendering_shared_edge
234 https://www.khronos.org/registry/gles/extensions/NV/sample_locations.txt GL_NV_sample_locations
235 https://www.khronos.org/registry/gles/extensions/NV/sample_mask_override_coverage.txt GL_NV_sample_mask_override_coverage
236 https://www.khronos.org/registry/gles/extensions/NV/viewport_array2.txt GL_NV_viewport_array2
237 https://www.khronos.org/registry/gles/extensions/NV/NV_polygon_mode.txt GL_NV_polygon_mode
238 https://www.khronos.org/registry/gles/extensions/EXT/EXT_buffer_storage.txt GL_EXT_buffer_storage
239 https://www.khronos.org/registry/gles/extensions/EXT/EXT_sparse_texture.txt GL_EXT_sparse_texture
240 https://www.khronos.org/registry/gles/extensions/OVR/multiview.txt GL_OVR_multiview
241 https://www.khronos.org/registry/gles/extensions/OVR/multiview2.txt GL_OVR_multiview2
242 https://www.khronos.org/registry/gles/extensions/KHR/no_error.txt GL_KHR_no_error
243 https://www.khronos.org/registry/gles/extensions/INTEL/framebuffer_CMAA.txt GL_INTEL_framebuffer_CMAA
244 https://www.khronos.org/registry/gles/extensions/EXT/EXT_blend_func_extended.txt GL_EXT_blend_func_extended
245 https://www.khronos.org/registry/gles/extensions/EXT/EXT_multisample_compatibility.txt GL_EXT_multisample_compatibility

In [93]:
html = urllib2.urlopen('https://www.khronos.org/registry/gles/extensions/OES/OES_stencil_wrap.txt')	
text = html.read()
#print text

str = re.sub('\n',' ', text)
str = re.sub('\s+',' ', str)
VersionStr = re.findall('Version\s+(.*)Number', str)
NumberStr = re.findall('Number\s+(.*)Dependencies', str)
DependenciesStr = re.findall('Dependencies\s+(.*)Overview',str)
OverviewStr = re.findall('Overview\s+(.*)New Procedures and Functions', str)

Number = re.findall('OpenGL ES Extension (#\d+) ', NumberStr[0] )

Date = re.findall('\d+/\d+/\d+', VersionStr[0])
if( len(Date) == 0):
    Date = re.findall('Date:?\s+(.*\d\d\d\d) ', VersionStr[0])

Version = re.findall('Version\s+(\d+?.\d+)', VersionStr[0])
if (len(Version) == 0):
    Version = re.findall('Revision:?\s+(\d+)', VersionStr[0])

OESversion = re.findall('OpenGL\s+ES\s+\d+\.\d+\.?\d?', DependenciesStr[0] )
OGLversion = re.findall('OpenGL\s+\d+\.\d+\.?\d?', DependenciesStr[0] )

print Number
print Date
print Version
#print DependenciesStr
print OESversion
print OGLversion
print OverviewStr


---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-93-7d9757c36def> in <module>()
     10 OverviewStr = re.findall('Overview\s+(.*)New Procedures and Functions', str)
     11 
---> 12 Number = re.findall('OpenGL ES Extension (#\d+) ', NumberStr[0] )
     13 
     14 Date = re.findall('\d+/\d+/\d+', VersionStr[0])

IndexError: list index out of range

In [95]:
text


Out[95]:
'The GL_OES_stencil_wrap extension extends the StencilOp functions to\nsupport GL_INCR_WRAP and GL_DECR_WRAP modes.\n\nFor more information, see the OpenGL ES 1.1 Extension Pack document\nin the Khronos API Registry:\n\n    http://www.khronos.org/registry/gles/\n'

In [97]:
m = re.findall("\d\d\d\d-\d\d-\d\d", "2011-03-07")
print m


['2011-03-07']